摘要: controller代码: 1 @RequestMapping("/success") 2 public String success(Map<String,Object> map){ 3 map.put("hello", "<h1>你好</h1>"); 4 map.put("users", Arr 阅读全文
posted @ 2020-09-15 22:14 山下明明子 阅读(235) 评论(0) 推荐(0)
摘要: 在html文件中, 首先导入thymeleaf的名称空间 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 然后先感受一下thymeleaf的语法--he: 先在controller中配置: 1 @Controller 2 public cla 阅读全文
posted @ 2020-09-15 17:48 山下明明子 阅读(138) 评论(0) 推荐(0)
摘要: 首先导入thymeleaf: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 使用: 只要把HT 阅读全文
posted @ 2020-09-15 15:54 山下明明子 阅读(1735) 评论(0) 推荐(0)