Spring Boot
상위 문서: {{ item.title }} -
Spring Boot 를 사용하면서 알게 된점
AutoConfig disable 하는 방법
@TestPropertySource(properties=
{"spring.autoconfigure.exclude=comma.seperated.ClassNames,com.example.FooAutoConfiguration"})
@SpringBootTest
public class MySpringTest {...}
or
@SpringBootTest(classes = {Application.class}
, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT
, properties="spring.autoconfigure.exclude=com.xx.xx.AutoConfiguration"
)
or
---
spring:
autoconfigure.exclude: org.springframework.boot.autoconfigure.session.SessionAutoConfiguration