springboot整合mybatis,mongodb,redis
2024-10-17 16:20:28
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
最新文章
- [IOS]译Size Classes with Xcode 6: One Storyboard for all Sizes
- mybatis foreach的使用
- web.xml相关知识摘录整理
- scrapy 代理
- HDU5052 Yaoge’s maximum profit(LCT)
- R语言学习笔记:列表
- import com.sun.image.codec.jpeg.JPEGCodec不通过 Eclipse找不到包
- c# gzip解压缩
- Ubuntu16.04安装GTK3主题:OSX-Arc
- java第十二次作业
- 异步加载js的三种方法
- MySQL 8.0.12 基于Windows 安装教程(超级详细)
- solr 中文分词器IKAnalyzer和拼音分词器pinyin
- Mac book Pro BootCamp驱动下载地址
- python爬虫 beutifulsoup4_1官网介绍
- odoo tree视图 当页不弹窗显示方法
- FastDFS初步认识--上传下载流程介绍
- ReentrantLock获取到非公平锁的源码
- expdp 简单例子
- ActiveMQ笔记:管理和监控
热门文章
- AtCoder Beginner Contest 125 解题报告
- My journey introducing the data build tool (dbt) in project’s analytical stacks
- 【JOISC2019|2019】【20190622】cake3
- 【后缀数组】【LuoguP4248】 [AHOI2013]差异
- Java-根据经纬度计算距离(百度地图距离)
- JS和JQuery实现Button绑定键盘Enter事件实现提交
- SDN第五次上机实验
- 对5月13号中BaseDao方法进行优化改造,更接近于框架的编写
- 蚂蚁Pincap头条
- 刷题记录:[FBCTF2019]Products Manager