![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Boot
鹿林深
盔甲再厚也无用,伤疤硬实才能防身。
展开
-
SpringBoot JAVA 动态设置定时任务执行时间
一 .核心代码@Component@EnableSchedulingpublic class ScheduleService implements SchedulingConfigurer { private String cron = "*/5 * * * * *"; private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); @Override public.原创 2021-09-21 16:14:02 · 2039 阅读 · 0 评论 -
Spring Boot入门三
一、Web开发1、简介使用SpringBoot;1)、创建SpringBoot应用,选中我们需要的模块;2)、SpringBoot已经默认将这些场景配置好了,只需要在配置文件中指定少量配置就可以运行起来3)、自己编写业务代码;2、SpringBoot对静态资源的映射规则;1)、所有 /webjars/** ,都去 classpath:/META-INF/resource...原创 2019-12-18 14:50:13 · 130 阅读 · 0 评论 -
Spring Boot入门二
一、Spring Boot 配置文件解析 1.resources文件夹中目录结构 static:保存所有的静态资源; js css images; templates:保存所有的模板页面;(Spring Boot默认jar包使用嵌入式的Tomcat,默认不支持JSP页面);可以使用模板引擎(freemarker、thymeleaf);...原创 2019-12-16 15:21:56 · 122 阅读 · 0 评论 -
Spring Boot入门一(SpringBoot简介 Hello Word编译,探究)
一。简介Spring Boot来简化Spring应用开发,约定大于配置, 去繁从简,just run就能创建一个独立的,产品级别的应用背景: J2EE笨重的开发、繁多的配置、低下的开发效率、 复杂的部署流程、第三方技术集成难度大。解决: “Spring全家桶”时代。 Spring Boot >J2EE一站式解决方案 Spring Cloud >分布式整体解决方案...原创 2019-05-21 11:40:15 · 221 阅读 · 0 评论