diff --git a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/java/com/neo/web/ExampleController.java b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/java/com/neo/web/ExampleController.java index 112760366..af05d2826 100644 --- a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/java/com/neo/web/ExampleController.java +++ b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/java/com/neo/web/ExampleController.java @@ -48,7 +48,7 @@ public String eq(ModelMap map) { @RequestMapping("/switch") public String switchcase(ModelMap map) { - map.addAttribute("sex", "woman"); + map.addAttribute("gender", "woman"); return "switch"; } diff --git a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/switch.html b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/switch.html index aef5a3031..80a9c6162 100644 --- a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/switch.html +++ b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/switch.html @@ -6,7 +6,7 @@
她是一个姑娘...
这是一个爷们!
diff --git a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/url.html b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/url.html index ded52686f..60ce5dff3 100644 --- a/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/url.html +++ b/spring-boot-thymeleaf/spring-boot-thymeleaf/src/main/resources/templates/url.html @@ -11,7 +11,7 @@