thymeleaf :springboot整合mybatis的web项目中使用html而不是jsp当页面渲染
2017-10-26 00:00
1231 查看
1.引入依赖
2.application.properties中添加
3.OK
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
2.application.properties中添加
classpath:/templates/*.html classpath:/static/ #thymeleaf start spring.thymeleaf.mode=HTML5 spring.thymeleaf.encoding=UTF-8 spring.thymeleaf.content-type=text/html #开发时关闭缓存,不然没法看到实时页面 spring.thymeleaf.cache=false #thymeleaf end
3.OK
相关文章推荐
- 【spring boot】5.spring boot 创建web项目并使用jsp作前台页面
- springboot-10-前端页面整合, thymeleaf, freemarker, jsp 模板使用
- 5-Spring Boot ( 使用JSP渲染Web视图 )
- 使用Spring Boot +JPA+mybatis快速启动一个web项目
- 使用idea+springboot+Mybatis搭建web项目
- SpringBoot--使用Thymeleaf模板开发web项目
- Spring boot+ maven + thymeleaf + HTML 实现简单的web项目
- 使用idea+springboot+Mybatis搭建web项目
- Web项目下整合springBoot+springMVC+mybatis+boot内嵌tomcat以及所需jar包
- 【系统学习SpringBoot】初见Thymeleaf之SpringBoot访问项目中的 jsp/html
- springboot使用thymeleaf模板渲染html,报错“whitelabel error page,type=not found,status=404”
- SpringBoot 同时整合thymeleaf html、vue html和jsp-在线助手
- springboot+mybatis+redis+thymeleaf Web项目搭建 开箱即用
- Spring Boot 与 kotlin 使用Thymeleaf模板引擎渲染web视图的方法
- 使用myeclipse搭建SpringBoot框架,整合thymeleaf模板和mybatis
- springboot 整合web项目支持jsp
- springboot如何使用thymeleaf模板访问html页面
- 使用springboot创建web项目(一),登录页面
- MyBatis学习总结(八)——Mybatis3.x与Spring4.x整合 一、搭建开发环境 1.1、使用Maven创建Web项目 执行如下命令: mvn archetype:create
- Spring Boot☞ 使用Thymeleaf模板引擎渲染web视图