小组成员:html
龙继平201731062131java
王阳:201731041215mysql
一、我采用springboot作项目。由于springboot继承ssm。更加容易,不容易出现配置问题。git
二、在idea中新建一个springboot项目。github
三、application.properties中配置环境。spring
server.port=8080 spring.datasource.url=jdbc:mysql://localhost:3306/javaee?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #配置视图解析 spring.mvc.view.prefix=/templates/ spring.mvc.view.suffix=.html server.error.path=/error.html #启用缓存 spring.thymeleaf.cache=true #开启热部署 spring.devtools.restart.enabled=true #监听目录 spring.devtools.restart.additional-paths=src/main/java #配置mybatis mybatis.mapper-locations=classpath:Mybatis/mapper/*.xml mybatis.config-location=classpath:Mybatis/Mybatis-config.xml mybatis.type-aliases-package=com.example.demo.entity
四、在启动类上面配置mybatis的mapper扫描。和过滤器扫描sql
五、对代码进行修改。改bug。缓存
六、因为咱们小组原来项目就是采用的springboot整合ssm开发的,整合过程我就不详细写了。开发过程见如下博文springboot
http://www.javashuo.com/article/p-oxujwhpj-mx.htmlmybatis
http://www.javashuo.com/article/p-gkqdrsts-mx.html
http://www.javashuo.com/article/p-kygrvshf-mx.html
七、github地址: