springBoot 添加定时器和事务

定时器使用 一、启动类上添加注解 二、在配置文件中加上规则( cron的表达式自行百度) 三、在service层中添加任务使用注解: @Scheduled(cron = "${krystal.quarz.order.cron}") 事务使用: 一、pom.xml中添加依赖 <dependencies> <dependency> <!--添加Web依赖 -->     <groupId>org.sp
相关文章
相关标签/搜索