• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






statics

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

10 2022 档案

 
spring boot 整合mybatis 配置多数据源 数据源切换和多数据源的事务
摘要:因为项目中用到了多数据源 不可避免的会有各种各样的问题列一下最主要的问题: 1 如何配置多数据源???2 spring项目中多数据源无法切换???3 操作了2个或者2个以上数据库的数据无法保证事务的一致性(也就是多数据源事务管理) 上面的3个问题 其实我只遇到了其中的一个 (spring项目中多数据 阅读全文
posted @ 2022-10-09 17:36 statics 阅读(863) 评论(0) 推荐(0)
springboot 整合 recketMQ 详细步骤
摘要:前提 RocketMQ的部署环境可用 1 依赖包 <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-spring-boot-starter</artifactId> <version>2.2.1</ver 阅读全文
posted @ 2022-10-08 16:49 statics 阅读(171) 评论(0) 推荐(0)
spring boot整合maybatis plus 的 文件生成代码
摘要:/** * 代码生成 */public class AutoGenerator_ { public static void main(String[] args) { AutoGenerator generator = new AutoGenerator(); // 数据源 DataSourceCo 阅读全文
posted @ 2022-10-08 16:29 statics 阅读(57) 评论(0) 推荐(0)