SpringBoot进行web开发-引入thymeleaf
1、springboot内嵌使用tomcat服务器,所以默认的jsp页面语法不能使用。

3、首先在pom.垓矗梅吒xml引入thymeleaf相关的依赖包。<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>

5、这样配置之后就可以覆盖我们springboot父类的thymeleaf属性配置。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:42
阅读量:42
阅读量:55
阅读量:79
阅读量:70