摘要: 直接在 DEMO: springboot 与 mybatis 集成 基础上,进行修改。 1、pom.xml 中引用 依赖 2、src/main/resources/application.properties 中添加 freemarker 配置 关键是模板的位置:spring.freemarker. 阅读全文
posted @ 2017-06-12 15:38 蛋尼 阅读(1473) 评论(0) 推荐(1)
摘要: 之前一直在用springMVC,接触到springboot之后,感觉使用起来方便多了,没那多xml需要配置。 先来看看整个项目结构,当然是maven项目。 1、测试数据 DROP TABLE IF EXISTS `student`; CREATE TABLE `student` ( `id` int 阅读全文
posted @ 2017-06-12 14:45 蛋尼 阅读(676) 评论(0) 推荐(0)
摘要: mybatis与springboot集成的时候,报错:java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()L 根源:mybatis版本,与spring-m 阅读全文
posted @ 2017-06-12 14:07 蛋尼 阅读(186) 评论(0) 推荐(0)