摘要: 简单使用 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 配置 创建配置类 @EnableW 阅读全文
posted @ 2021-12-22 22:05 yangruomao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 异步任务 在启动类中开启异步任务 将方法注解为异步任务 定时任务 在启动类中开启定时任务 方法标记注解,使用 cron 表达式配置定时任务 cron 表达式一览 cron = "*,* * * * * *" 这六个值分别代表 秒、分、小时、日期、月份、星期。 在星期值中,0和7代表周日,1-6代表周 阅读全文
posted @ 2021-12-22 15:54 yangruomao 阅读(29) 评论(0) 推荐(0) 编辑