Spring boot - GunSik2/experiments GitHub Wiki

@EnableAutoConfiguration
@ComponentScan("com.opencredo.springboot")

@Configuration 
@EnableAutoConfiguration 
@ComponentScan

@SpringBootApplication
  • boot property path
spring.config.location
  • The default search path classpath:,classpath:/config,file:,file:config/ is always used, irrespective of the value of spring.config.location.
  • profile specific path
spring.profiles.active