java鬼混笔记:springboot 7、springboot整合mybatis后再加上druid数据库连接池
只是个配置,跟着走就行了 先看application.properties的配置内容 # 数据源Aspring.datasource.sysA.driverClassName = com.mysql.jdbc.Driverspring.datasource.sysA.url = jdbc:mysq...
java鬼混笔记:springboot 9、springboot整合mybatis加上分页功能
之前笔记是springboot+mybatis,但是漏了一个重要的功能 ,那就是分页。分页的话,用国人提供的一个好插件pagerhelper,简单明了。上代码!!! 首先在pom.xml中引入新的jar /////<dependency><groupId>com.githu...
springboot使用之二:整合mybatis(xml方式)并添加PageHelper插件
整合mybatis实在前面项目的基础上进行的,前面项目具体整合请参照springboot使用之一。一.整合mybatis整合mybatis的时候可以从mybatis官网下载mybatis官网整合的项目mybatis-spring-boot-start.对原理感兴趣可以研究2一下,这里只叙述步骤。1....