
SpringBoot
_SnowMultiflora
一个努力学习的程序员美少女
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring Boot 定时任务——Spring Boot整合Quartz
Quartz使用思路 job 任务 ——你要做什么事? Trigger 触发器 ——你什么时候去做? Scheduler 任务调度 ——你什么时候需要去做什么事? Quartz的使用 添加坐标(在spring boot的基础上) <!-- Quartz坐标 --> <dependency> <group...原创 2019-11-22 15:29:27 · 252 阅读 · 0 评论 -
Spring Boot 定时任务——@Scheduled
Scheduled定时任务器:是Spring 3.0以后自带的一个定时任务器 目录 Scheduled的使用 Cron表达式 Scheduled的使用 使用Scheduled我们首先添加其坐标 <!-- 添加 Scheduled 坐标 --> <dependency> <groupId>or...原创 2019-11-22 15:19:15 · 282 阅读 · 0 评论 -
关于ehcache配置中timeToLiveSeconds和timeToIdleSeconds的区别
timeToLiveSeconds: 当对象自从被存放到缓存中后,如果处于缓存中的时间超过了 timeToLiveSeconds属性值,这个对象就会过期,EHCache将把它从缓存中清除;即缓存自创建日期起能够存活的最长时间,单位为秒(s) timeToIdleSeconds: 当对象自从最近一次被访问后,如果处于空闲状态的时间超过了timeToIdleSeconds属性值,这个对象就会过期...转载 2019-11-22 09:28:15 · 409 阅读 · 0 评论 -
Spring Boot热部署
SpringBoot热部署有两种方式:SpringLoader插件和DevTools工具 SpringLoader插件 使用SpringLoader插件有两种方式:以maven插件的方式使用和通过导入jar包使用 缺陷:SpringLoader插件是java代码的热部署,对于前台页面无能为力 方式一:以maven插件的方式使用 在pom文件中添加坐标 <!-- ...原创 2019-11-20 18:40:10 · 359 阅读 · 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 · 655 阅读 · 0 评论 -
Thymeleaf的使用及语法
Thymeleaf是使用特定语法对HTML做渲染 Thymeleaf的使用 要是用Thymeleaf首先要添加坐标 <!--thymeleaf--> <dependency> <groupId>org.springframework.boot</groupId> <a...原创 2019-11-19 19:55:53 · 552 阅读 · 0 评论