2021年12月10日

IDEA - 实时显示当前光标在哪个类,哪个方法里

摘要: 问题:如何显示这一块? 解决方案: 阅读全文

posted @ 2021-12-10 17:56 frank_cui 阅读(522) 评论(0) 推荐(1)

Annotation - @SneakyThrows注解

摘要: 一、简介 ​ 在java的异常体系中Exception异常有两个分支: 一个是运行时异常RuntimeException ———— 所有的运行时异常不捕获 一个是编译时异常,(比如IOException、SQLException等) —— 编译时异常是一定要捕获,否则编译会报错 @SneakyThr 阅读全文

posted @ 2021-12-10 14:05 frank_cui 阅读(284) 评论(0) 推荐(0)

SpringBoot - @ConfigurationProperties 注解 vs @EnableConfigurationProperties 注解

摘要: 总结 @EnableConfigurationProperties 注解的作用是: 让使用了 @ConfigurationProperties 注解的类生效,并且将该类注入到 IOC 容器中,交由 IOC 容器进行管理。 如果没有使用@EnableConfigurationProperties 注解 阅读全文

posted @ 2021-12-10 11:27 frank_cui 阅读(305) 评论(0) 推荐(0)

SpringBoot - 定时任务@EnableScheduling

摘要: 一、@EnableScheduling 使用在启动类上 写一个springboot的启动类: 启动类里面使用@EnableScheduling 注解开启功能,自动扫描 @SpringBootApplication @EnableScheduling //开启定时任务 public class Mai 阅读全文

posted @ 2021-12-10 10:02 frank_cui 阅读(406) 评论(0) 推荐(0)

导航

levels of contents