Place your properties in a location that loads before auto-configuration:
@SpringBootApplication
@PropertySource("classpath:/WEB-INF/my-web.properties")
public class MyApplication {
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}