springboot整合常用的第三方框架,mybatis,mongodb,redis
mybatis,采用xml编写sql语句
mongodb,对MongoTemplate进行了封装
redis,对redisTemplate进行封装成工具类
可以基于该项目进行快速开发,省得以后每次开发又要重新整合一遍
项目结构:
属性配置文件
mybatis.mapper-locations=classpath*:/mapper/**/*.xml
mybatis.type-aliases-package=com.irish.model
mybatis.configuration.map-underscore-to-camel-case=true
logging.level.com.irish.mapper=debug spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=
spring.datasource.max-wait=
spring.datasource.min-idle=
spring.datasource.initial-size= pagehelper.offset-as-page-num=true
pagehelper.reasonable=true
pagehelper.page-size-zero=true
pagehelper.support-methods-arguments=true spring.data.mongodb.host=127.0.0.1
spring.data.mongodb.port=
spring.data.mongodb.username=
spring.data.mongodb.password=
spring.data.mongodb.database=watch spring.redis.database=
spring.redis.host=127.0.0.1
spring.redis.port=
spring.redis.password=
spring.redis.pool.max-active=
spring.redis.pool.max-idle=
spring.redis.pool.min-idle=
github下载地址:https://github.com/jake1263/springboot-integration