问题
I recently updated from Spring Boot 2.0.4 to 2.1.2 but due to the WebMvcTest auto-inclusion of custom security configurations my custom security configuration is being included.
The problem with that is that my custom security configuration depends on other components (services and repositories down the dependency tree), and
I don’t want to set up the entire infrastructure.
How can I set up the same behavior of 2.0.4, but with the new Micrometers of this version?
来源:https://stackoverflow.com/questions/54506527/security-configuration-on-spring-boot-2-1-how-to-keep-the-default-instead-of-m