springboot+mybatis+freemarker+shiro多模块项目搭建笔记(三)--集成freemarker
2020-04-25 07:35
976 查看
3. 集成freemarker
到这里mybatis plus的那一套基本就流程化了,这一步要开始往前走了~~
lee_admin的pom中引入依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency>
然后配置application
#freemarker 模板定义配置 freemarker: charset: UTF-8 suffix: .ftl content-type: text/html;charset=utf-8 template-loader-path: classpath:/templates cache: false settings: template_update_delay: 0 classic_compatible: true #防止页面null时报错;注意:开启后页面引用需要用绝对路径
然后把bootstrap的那些静态文件和js等文件都放进去,具体代码略略略…写完了以后跑起来一看,效果很不好:
当时就蒙了,咋回事,去看看人家怎么说的~~然后看不懂,直接复制粘贴好了
加上以后一刷新~哦豁,完美!
页面效果,不要当真,自己17年写的破ui,半成品。
这样就把freemarker集成进来了
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- springboot+mybatis+freemarker+shiro多模块项目搭建笔记(四)--热部署配置
- SpringBoot+Shiro+MyBatisPlus搭建前后端分离的多模块项目
- SpringBoot+Mybatis多模块项目搭建教程
- 使用SpringBoot搭建小型项目,集成mybatis,redis,swagger2,并部署在外部容器中。
- IDEA上搭建maven项目整合springboot+mybatis+shiro
- Springboot整合dubbo构建maven多模块项目(四) - 集成mybatis
- 整合SpringBoot + MybatisPlus 搭建JAVA多模块项目基本骨架
- 搭建spring boot集成mybatis项目入门
- springmvc+spring+mybatis+maven项目集成shiro进行用户权限控制
- Spring+Spring MVC+Mybatis+Maven搭建多模块项目(一)
- spring boot 集成 shiro 自定义密码验证 自定义freemarker标签根据权限渲染不同页面(推荐
- SpringBoot学习笔记之mybatis分页插件集成
- springboot整合mybatis-plus用AutoGenerator搭建项目
- (完整版)springboot项目搭建外加连接数据库(整合mybatis)和多环境切换(基于maven开发)
- spring boot 自学笔记(二) 集成Mybatis
- eclipse搭建多模块springboot项目
- SpringMVC+Shiro+Mybatis+Freemarker集成的方法小结(三)
- idea+springboot+Mybatis搭建web项目
- SpringMVC+Spring+mybatis+Redis项目从零开始--分模块项目结构搭建
- SpringBoot学习笔记-基础项目搭建