随笔分类 -  spring cloud

摘要:一、简介 1、添加jar <dependency> <groupId>com.xuxueli</groupId> <artifactId>xxl-job-core</artifactId> <version>2.1.2</version> </dependency> 2、实例化执行器 @Slf4j 阅读全文
posted @ 2022-03-10 14:35 上官兰夏 阅读(1667) 评论(0) 推荐(0)
摘要:一、启动配置类 Xxl-job的服务端是以springboot构架为基础打包运行的,启动类为XxlJobAdminApplication,那么就先从他的配置类XxlJobAdminConfig看起。 @Component public class XxlJobAdminConfig implemen 阅读全文
posted @ 2022-03-10 14:35 上官兰夏 阅读(700) 评论(0) 推荐(0)
摘要:一、配置加载 public static void main(String[] args) { ConfigurableApplicationContext ctx = SpringApplication.run(SampleTomcatApplication.class, args); Strin 阅读全文
posted @ 2022-01-03 12:15 上官兰夏 阅读(200) 评论(0) 推荐(0)
摘要:一、引言 @SpringBootApplication public class SampleTomcatApplication { public static void main(String[] args) { SpringApplication.run(SampleTomcatApplicat 阅读全文
posted @ 2022-01-03 12:14 上官兰夏 阅读(35) 评论(0) 推荐(0)
摘要:一、引言 传统的SSM框架开发需要多种配置文件,application.xml、springmvc.xml、web.xml等等,然后对写好的程序进行编译、打包,丢到tomcat的webapp下部署、启动。但是经过后续框架的发展,基本可以做到零配置文件,也不需要单独安装tomcat进行部署。实现的原理 阅读全文
posted @ 2022-01-03 12:14 上官兰夏 阅读(546) 评论(0) 推荐(0)
摘要:一、构造器初始化 public static ConfigurableApplicationContext run(Class<?> primarySource, String... args) { return run(new Class<?>[] { primarySource }, args) 阅读全文
posted @ 2022-01-03 12:14 上官兰夏 阅读(51) 评论(0) 推荐(0)