摘要:
Spring boot 项目启动过程中: org.springframework.boot.SpringApplication#prepareEnvironment 当程序步入listeners.environmentPrepared(environment);这里后,就会读取配置文件中信息。 这句 阅读全文
posted @ 2019-11-14 17:40
二奎
阅读(3271)
评论(0)
推荐(1)
摘要:
Spring boot 的@Value只能用于bean中,在bean的实例化时,会给@Value的属性赋值:如下面的例子: 下面的类显示了bean的实例化方法:org.springframework.context.support.AbstractApplicationContext bean的具体 阅读全文
posted @ 2019-11-14 16:50
二奎
阅读(1986)
评论(1)
推荐(0)