File > Settings > Build,Execution,Deployment > 选中Build project automatically <dependency> <groupId>org.springframework.boo
@Autowired(required = false) public void setAdapters(Map<String, 掊口名> map){}
ApplicationContextInitializer org.springframework.context.ApplicationContextInitializer 这是整个spring容器在刷新之前初始化ConfigurableApplicationContext的回调接口,简单来说,
spring boot项目发布war包部署到tomcat
springboot 启动会扫描以下位置的application.properties或者application.yml文件作为Spring boot的默认配置文件
–file:./config/
–file:./
–classpath:/config/
–classpath:/
优先级由高到底,高优先级的配置会覆盖低优先级的配置;
SpringBoot会从这四个位置全部加载主配置文件;互补配置;
Spring Boot官网:http://projects.spring.io/spring-boot/
Eclipse官网:http://www.eclipse.org/
Maven官网:http://maven.apache.org/
JDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-13