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=10 spring.datasource.max-wait=10000 spring.datasource.min-idle=5 spring.datasource.initial-size=5 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=27017 spring.data.mongodb.username= spring.data.mongodb.password= spring.data.mongodb.database=watch spring.redis.database=0 spring.redis.host=127.0.0.1 spring.redis.port=6379 spring.redis.password= spring.redis.pool.max-active=10 spring.redis.pool.max-idle=10 spring.redis.pool.min-idle=5
github下载地址:https://github.com/jake1263/springboot-integration
原文地址:https://www.cnblogs.com/moris5013/p/11156398.html
时间: 2024-10-28 19:37:58