![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
同學你好
这个作者很懒,什么都没留下…
展开
-
Spring Boot Starter 的工作原理是什么?
问:Spring Boot Starter 的工作原理是什么? 答:Spring Boot 在启动的时候会干这几件事情: ① Spring Boot 在启动时会去依赖的 Starter 包中寻找 resources/META-INF/spring.factories 文件,然后根据文件中配置的 Jar 包去扫描项目所依赖的 Jar 包。 ② 根据 spring.factories...转载 2019-10-30 09:43:31 · 1888 阅读 · 0 评论 -
springboot 异步任务
一、 1: 启动类里面使用@EnableAsync注解开启功能,自动扫描 2:在要异步任务的类上写@component 3:在定义异步任务类写@Async(写在类上代表整个类都是异步,在方法加上代表该类异步执行) 主类 @SpringBootApplication @EnableAsync //开启异步任务 @MapperScan("com.qdd.api.mapper.generate") ...原创 2019-02-21 17:08:31 · 107 阅读 · 0 评论 -
springboot定时器
1:在启动类上写@EnableScheduling注解 2:在要定时任务的类上写@component 3:在要定时执行的方法上写@Scheduled(fixedRate=毫秒数)或者使用cron表达式。 @EnableScheduling //开启定时任务 @SpringBootApplication @MapperScan("com.qdd.api.mapper.generate") publi...转载 2019-02-18 16:34:23 · 145 阅读 · 0 评论 -
Thymleaf 特殊符号的写法
&符号在thymleaf中需要写成&;才会被识别 < 在js中需要加/<![CDATA[*/ /*]]>/ 才会被识别 onclick 传参记录下 th:"'updateData('+${scheme.id}+')'">修改</a><br/> th:"'deleteData(\''+${scheme.model}+'\...原创 2019-04-11 17:48:26 · 995 阅读 · 0 评论