diff --git a/01_hello_world/src/main/java/com/jeromejaglale/config/ServletInitializer.java b/01_hello_world/src/main/java/com/jeromejaglale/config/ServletInitializer.java index b2d5641..7f37145 100644 --- a/01_hello_world/src/main/java/com/jeromejaglale/config/ServletInitializer.java +++ b/01_hello_world/src/main/java/com/jeromejaglale/config/ServletInitializer.java @@ -15,6 +15,6 @@ protected Class[] getServletConfigClasses() { @Override protected String[] getServletMappings() { - return new String[]{"/"}; + return new String[]{"/*"}; } } diff --git a/01_hello_world/src/main/java/com/jeromejaglale/controller/HelloController.java b/01_hello_world/src/main/java/com/jeromejaglale/controller/HelloController.java index 8a68bb0..cad8bdd 100644 --- a/01_hello_world/src/main/java/com/jeromejaglale/controller/HelloController.java +++ b/01_hello_world/src/main/java/com/jeromejaglale/controller/HelloController.java @@ -6,7 +6,7 @@ @Controller public class HelloController { - @RequestMapping("hi") + @RequestMapping("/hi") @ResponseBody public String hi() { return "Hello, world.";