SpringBoot
_SnowMultiflora
一个努力学习的程序员美少女
展开
-
Spring Boot 定时任务——Spring Boot整合Quartz
Quartz使用思路job 任务 ——你要做什么事? Trigger 触发器 ——你什么时候去做? Scheduler 任务调度 ——你什么时候需要去做什么事?Quartz的使用添加坐标(在spring boot的基础上)<!-- Quartz坐标 --> <dependency> <group...原创 2019-11-22 15:29:27 · 201 阅读 · 0 评论 -
Spring Boot 定时任务——@Scheduled
Scheduled定时任务器:是Spring 3.0以后自带的一个定时任务器目录Scheduled的使用Cron表达式Scheduled的使用使用Scheduled我们首先添加其坐标 <!-- 添加 Scheduled 坐标 --> <dependency> <groupId>or...原创 2019-11-22 15:19:15 · 183 阅读 · 0 评论 -
关于ehcache配置中timeToLiveSeconds和timeToIdleSeconds的区别
timeToLiveSeconds:当对象自从被存放到缓存中后,如果处于缓存中的时间超过了 timeToLiveSeconds属性值,这个对象就会过期,EHCache将把它从缓存中清除;即缓存自创建日期起能够存活的最长时间,单位为秒(s)timeToIdleSeconds:当对象自从最近一次被访问后,如果处于空闲状态的时间超过了timeToIdleSeconds属性值,这个对象就会过期...转载 2019-11-22 09:28:15 · 307 阅读 · 0 评论 -
Spring Boot热部署
SpringBoot热部署有两种方式:SpringLoader插件和DevTools工具SpringLoader插件使用SpringLoader插件有两种方式:以maven插件的方式使用和通过导入jar包使用缺陷:SpringLoader插件是java代码的热部署,对于前台页面无能为力方式一:以maven插件的方式使用在pom文件中添加坐标 <!-- ...原创 2019-11-20 18:40:10 · 295 阅读 · 0 评论 -
Intellij IDEA 使用Spring-boot-devTools 不生效 解决方法
在eclipse中,默认会自动编译,所以只要添加devtools的坐标就可以使用了,但是同样的方法在IDEA缺没有反应原因:IDEA并没有像eclipse那样自动编译,所以我们需要开启自动编译Files——Settings——Build,Execution,Deployment——Compiler之后使用shift+ctrl+alt+/ 看到如下选择Registry...原创 2019-11-20 17:35:40 · 549 阅读 · 0 评论 -
Thymeleaf的使用及语法
Thymeleaf是使用特定语法对HTML做渲染Thymeleaf的使用要是用Thymeleaf首先要添加坐标 <!--thymeleaf--> <dependency> <groupId>org.springframework.boot</groupId> <a...原创 2019-11-19 19:55:53 · 473 阅读 · 0 评论