![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
qiuxiaoning2019
这个作者很懒,什么都没留下…
展开
-
使用springboot2.x完成异步任务(或开启线程池)的方法
使用springboot2.x完成异步任务(或开启线程池)的方法 1、在主启动类上加@EnableAsync @EnableAsync @SpringBootApplication public class Springboot04TaskApplication { public static void main(String[] args) { SpringApplication.run(Springboot04TaskApplication.class, args); }原创 2021-12-19 17:04:09 · 400 阅读 · 0 评论 -
springboot2.x使用事务
一、首先写两个工具业务类 @Override public EmployeeEntity addbsarary() { EmployeeEntity entity = employeeDao.selectById(1002); entity.setBsaralry(entity.getBsaralry() + 1000); return entity; } @Override public EmployeeEntity原创 2021-12-18 22:34:29 · 280 阅读 · 0 评论 -
springboot2.xx整合AOP功能记录日志
springboot整合AOP实现记录日志功能 一、导入pom包 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1.14</version> </dependency原创 2021-12-18 17:39:35 · 116 阅读 · 0 评论