自我成长
首页 关于 友链
1 wlop 4K 壁纸 4k8k 动态 壁纸 1,942 阅读 2 Nacos持久化MySQL问题-解决方案 1,242 阅读 3 滑动时间窗口算法 1,084 阅读 4 ChatGPT注册 OpenAI's services are not available in your country 解决方法 1,022 阅读 5 Docker搭建Typecho博客 1,019 阅读
生活 解决方案 JAVA基础 JVM 多线程 开源框架 数据库 前端 分布式 框架整合 中间件 容器部署 设计模式 数据结构与算法 安全 开发工具 百度网盘 天翼网盘 阿里网盘
登录
标签搜索
  • java
  • javase
  • docker
  • java8
  • springboot
  • thread
  • spring
  • 分布式
  • mysql
  • 锁
  • linux
  • redis
  • 源码
  • typecho
  • centos
  • git
  • map
  • RabbitMQ
  • lambda
  • stream
侧边栏壁纸
博主昵称
少年

  • 累计撰写 189 篇文章
  • 累计收到 53 条评论
  • 首页
  • 栏目
    • 生活
    • 解决方案
    • JAVA基础
    • JVM
    • 多线程
    • 开源框架
    • 数据库
    • 前端
    • 分布式
    • 框架整合
    • 中间件
    • 容器部署
    • 设计模式
    • 数据结构与算法
    • 安全
    • 开发工具
    • 百度网盘
    • 天翼网盘
    • 阿里网盘
  • 页面
    • 关于
    • 友链
搜索到 1 篇与 的结果
  • Springboot同一Server类方法调用事务解决方案 2022-03-12
    Springboot同一Server类方法调用事务解决方案 Springboot同一Server类方法调用事务解决方案1、引入springboot-aop start<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency>主要是使用里面的动态代理 <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.7</version> <scope>compile</scope> </dependency>2、开启动态代理@EnableAspectJAutoProxy(exposeProxy = true) @EnableDiscoveryClient @SpringBootApplication public class FamilyBookingApplication { public static void main(String[] args) { SpringApplication.run(FamilyBookingApplication.class, args); } }@EnableAspectJAutoProxy(exposeProxy = true):开启aspectj动态代理功能。以后所有的动态代理都是aspectj对象暴露代理对象。3、本类互调用代理对象调用@Service("userService") public class UserServiceImpl implements userService { @Transactional public void a(){ UserService userService = (UserService)AopContext.currentProxy(); userService.b(); userService.c(); } @Transactional public void b(){ } @Transactional public void c(){ } }
    • 2022年03月12日
    • 397 阅读
    • 0 评论
    • 4 点赞
博主栏壁纸
博主头像 少年

189 文章数
53 评论量
  • DBUtils进行数据库CRUD
  • Maven
  • Google Nexus私服搭建
  • wlop 4K 壁纸 4k8k 动态 壁纸
  • Docker 安装ES
人生倒计时
热门文章
  1. 1 wlop 4K 壁纸 4k8k  动态 壁纸
    wlop 4K 壁纸 4k8k 动态 壁纸
    1942 阅读 - 02/28
  2. 2 Nacos持久化MySQL问题-解决方案
    Nacos持久化MySQL问题-解决方案
    1242 阅读 - 10/26
  3. 3 滑动时间窗口算法
    滑动时间窗口算法
    1084 阅读 - 03/08
标签云
2020 - 2026 © Reach - YanxiZhu   蜀ICP备20017045号
已运行 00 天 00 时 00 分 00 秒
如果本站无意侵犯了您的权益请联系邮箱附说明(i2school@outlook.com)本站会在第一时间为您处理。 RSS MAP