Spring Bean的创建是典型的工厂模式,顶级接口是BeanFactory public interface BeanFactory { //对FactoryBean的转义定义,因为如果使用bean的名字检索Fact…
分类:Spring Boot
spring-boot集成swagger( 提供封装的starter源码)
swagger简介 Swagger™的目标是为REST APIs 定义一个标准的,与语言无关的接口,使人和计算机在看不到源码或者看不到文档或者不能通过网络流量检测的情况下能发现和理解各种服务的功能。当服务通…
spring 源码研究---core包-- PropertySource Environment
系统环境的配置设计: 系统环境的配置一般字典的方式key代表一个环境变量名 value代表了环境变量值。常用来存储在如.property文件、Map中,或命令行参数中。 spring设计了用于存储属性资源的抽象类Prop…
spring mvc 源码研究简单笔记--web容器启动加载WebApplicationContext和初始化DispatcherServlet
ContextLoaderListener监听器,加载ROOT WebApplicationContext 1.在web.xml配置监听器 <listener> &nbs…
Spring Boot 启动过程分析(一)
1. Spring Boot 入口——main方法 @SpringBootApplication public class Application { public static void main(String[] a…
Spring Boot 启动过程分析(二)
@EnableAutoConfiguration 源码如下: /** * Enable auto-configuration of the Spring Application Context, attempting t…
Spring Boot 启动过程分析(三)
private void refreshContext(ConfigurableApplicationContext context) { // 由于这里需要调用父类一系列的refresh操作,涉及到了很多核心操作,因此…
spring boot中spring.profiles.active的用法
1、在xml配置中加上 <context:property-placeholder location="classpath:${spring.profiles.active}/app.propertie…
IDEA构建spring源码阅读环境
安装git和JDK环境,确保jdk是8_20及以上版本,并且环境变量里配置了JAVA_HOME。 需要事先安装Gradle,安装方法和Maven基本一样 选择一个目录,执行 git clone git@github.co…
Spring-boot-admin功能说明
http://blog.csdn.net/xingfulangren/article/details/52304413 **************************************************…
Spring Boot Application 事件和监听器
https://www.cnblogs.com/fdzfd/p/7872909.html ********************************************** 一:Application …
spring源码学习---replaced-method的使用
作为开发人员,我觉得直接看例子更好: 1、bean配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springf…