
SpringBoot Thymeleaf
thymeleaf
初学者-码农
努力不写代码 - -!
展开
-
解决thymeleaf引入靜態js,css失效
thymeleaf引入靜態js,css失效 配置properties文件 #thymeleaf訪問根路徑 spring.thymeleaf.prefix=classpath:/templates/ #後綴名 spring.thymeleaf.suffix=.html #模板格式 spring.thymeleaf.mode=HTML5 #字符格式 spring.thymeleaf.encoding=UTF-8 #在呈现模板之前检查模板是否存在,默認true spring.thymeleaf.check-t原创 2020-08-28 16:19:03 · 1020 阅读 · 1 评论 -
SpringBoot 引入、使用thymeleaf
在pom.xml文件引入thymeleaf依賴, <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> ...原创 2020-01-20 09:47:56 · 344 阅读 · 1 评论