crm项目技术
一.框架搭建
- 后台:Springboot +mybatis+mysql
- 前台:layui+thymeleaf
layui是前端第三方框架(把css、js、html进行打包可直接用)
thymeleaf模板引擎
- 开发工具:idea+jdk1.8+git+maven
二.项目搭建
Springboot框架搭建
pro文件添加依赖:mysql驱动和thymeleaf模板引擎和Springboot的相应依赖。
application.properties:配置文件如下:
spring.datasource.url=jdbc:mysql://location:3306/edu\_crm
spring.datasource.username=root
spring.datasource.password=xxxxx
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#页面热加载
spring.thymeleaf.cache=false
#端口
server.port=8888
添加mybatis依赖
添加控制器:
就是html页面跟controller进行打通
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。