spring-boot-starter icon indicating copy to clipboard operation
spring-boot-starter copied to clipboard

Excluding AutoConfigureTestDatabase doesn't work with MybatisTest's excludeAutoConfiguration

Open x80486 opened this issue 2 years ago • 0 comments
trafficstars

I'm trying to configure a Spring Boot application that uses MyBatis in order to run the tests for the mappers. I noticed the annotation declares an excludeAutoConfiguration parameter. I went ahead and set it with AutoConfigureTestDatabase, but it doesn't do anything. Documentation states Auto-configuration exclusions that should be applied for this test. so it should work.

Why wouldn't excludeAutoConfiguration work in this case?

x80486 avatar Sep 15 '23 11:09 x80486