Commit e9b6de38 by Patryk Czarnik

PoprawienieURLi w "alternatywnych wersjach"

parent b6c47188
...@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody; ...@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import java.sql.*; import java.sql.*;
@Controller @Controller
@RequestMapping("/alt0") @RequestMapping("/alt0/products")
public class ProductController_v0 { public class ProductController_v0 {
// W tej wersji samodzielnie nawiązuję połączenie z bazą // W tej wersji samodzielnie nawiązuję połączenie z bazą
......
...@@ -10,7 +10,7 @@ import javax.sql.DataSource; ...@@ -10,7 +10,7 @@ import javax.sql.DataSource;
import java.sql.*; import java.sql.*;
@Controller @Controller
@RequestMapping("/alt1") @RequestMapping("/alt1/products")
public class ProductController_v1 { public class ProductController_v1 {
@Autowired @Autowired
private DataSource dataSource; private DataSource dataSource;
......
...@@ -12,7 +12,7 @@ import java.util.List; ...@@ -12,7 +12,7 @@ import java.util.List;
@Controller @Controller
@RequestMapping("/products_v2") @RequestMapping("/alt2/products")
public class ProductController_v2 { public class ProductController_v2 {
@Autowired @Autowired
private EntityManager em; private EntityManager em;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment