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#在呈现模板之前检查模板是否存在,默認truespring.thymeleaf.check-t原创 2020-08-28 16:19:03 · 930 阅读 · 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 · 311 阅读 · 1 评论