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