| layout | wiki |
|---|---|
| title | Spring Boot |
| summary | Spring Boot 를 사용하면서 알게 된점 |
| date | 2019-02-01 20:46:11 +0900 |
| updated | 2021-02-14 00:08:53 +0900 |
| tags | spring, springboot, java |
| toc | true |
| public | true |
| parent | Spring |
| latex | false |
| adsense | true |
- TOC {:toc}
@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