[Spring] 스프링 부트에서 auto-configuration을 비활성화하는 방법 Spring Boot는 자동구성(Auto-Configuration)기능을 통해 애플리케이션을 빠르게 구축하고 시작할 수 있는 강력한 기능을 제공한다. 하지만 때로는 특정 모듈의 자동 구성이 원치 않는 동작을 할 수 있다. 이럴때는 해당 자동 구성을 비활성화할 필요가 있다. @SpringBootApplication 어노테이션의 Exclude 속성 사용 @SpringBootApplication 어노테이션을 사용하여 애플리케이션 클래스를 정의할 때, exclude 속성을 사용하여 특정 자동구성을 비활성화할 수 있다. @SpringBootApplication(exclude = {SomeAutoConfiguration.class}) public class MyApplication { public static vo.. 이전 1 다음