
Spring Boot
ssyan
这个作者很懒,什么都没留下…
展开
-
Spring Boot系列--启动方法解析监听器
参考版本:2.0.8.RELEASE启动方法run中运行监听器的启动查找 jar包中META-INF/spring.factories中SpringApplicationRunListener的定义,如果只引入了springbootstarter包的话,这里只定义了一个监听器EventPublishingRunListener # Run Listenersorg.springfr...原创 2019-01-24 13:53:43 · 2339 阅读 · 0 评论 -
Spring Boot系列--启动方法prepareContext
参考版本:2.0.8.RELEASE启动方法run中prepareContext方法的执行/** * Run the Spring application, creating and refreshing a new * {@link ApplicationContext}. * @param args the application arguments (usually pas...原创 2019-01-25 11:45:58 · 660 阅读 · 0 评论 -
Spring Boot系列--自动配置
参考版本:2.0.8.RELEASESpring boot内置的自动配置类有:类路径中只要有相关的jar包,就会执行相应的自动配置# Auto Configureorg.springframework.boot.autoconfigure.EnableAutoConfiguration=\org.springframework.boot.autoconfigure.admin....原创 2019-01-22 10:53:51 · 252 阅读 · 0 评论 -
Spring Boot系列--Web环境
Spring Boot系列--父项目依赖Spring Boot系列--属性配置Spring Boot系列2.0.8.RELEASE--Web环境版本:2.0.8.RELEASE23.6 Web EnvironmentA SpringApplication attempts to create the right type of ApplicationContext on you...原创 2019-01-22 10:13:07 · 529 阅读 · 0 评论 -
Spring Boot系列--父项目依赖
Spring Boot系列--父项目依赖Spring Boot系列--属性配置版本:2.0.8.RELEASE1. 创建Spring Boot项目所需要的环境Spring Boot 2.0.8.RELEASE requires Java 8 or 9 and Spring Framework 5.0.12.RELEASE or above.Explicit build supp...原创 2019-01-21 18:10:31 · 10671 阅读 · 0 评论 -
Spring Boot系列--属性配置
Spring Boot系列--属性配置目录1、命令行参数2、配置文件2.1、@Value注解直接注入2.2、通过@ConfigurationProperties绑定到结构化对象版本:2.0.8.RELEASE本文源码 https://github.com/shuiyuebingdian/springboot-example-parent/tree/master/Exte...原创 2019-01-21 16:39:39 · 309 阅读 · 0 评论