spring源码-自定义文件名源码 ps spring-${username}.xml

ClassPathXmlApplicationContext

setConfigLocations(configLocations);//当前是设置配置看路径  还有一种是设置资源

 

 

 

 

 而且这里还有系统环境和系统属性

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 

 

 

 

 

 


 

 

 

 

 username=Administrator

 

 

 

 

 
AbstractApplicationContext  创建资源模式处理器
AbstractRefreshableApplicationContext
AbstractRefreshableConfigApplicationContext

 

posted @ 2022-06-18 22:49  花心大萝卜li  阅读(25)  评论(0)    收藏  举报