2020
09-24
09-24
SpringBoot thymeleaf的使用方法解析
1.pom.xml添加相应依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>2.application.properties#thymeleafspring.thymeleaf.prefix=classpath:/templates/spring.thymeleaf.suffix=.htmlspring.thymeleaf.mode=HTML5spring.thymeleaf.encoding=UTF-8spring.thymeleaf.content-type=text/html;charset=utf-8spring.thymeleaf.cache=false3...
继续阅读 >