Security configuration on Spring Boot 2.1 - How to keep the default instead of my custom for tests?

荒凉一梦 提交于 2019-12-25 02:45:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!