Skip Environment Post Proceseror spring Starter
我目前正在使用Spring Boot和某些第三方启动器。
我想在测试过程中禁用那些自动配置和启动器中的环境posterocessor
我可以使用@enableautoconfiguration(exclude = {xxx}
,
但是找不到任何方法可以禁用环境局部处理器。这阻止了我进行任何测试。有人可以帮忙吗?
I am currently using spring boot with some 3rd parties starter.
I want to disable those AutoConfiguration and the EnvironmentPostProcessor in the starter during testing
I can disable AutoConfiguration by using @EnableAutoConfiguration(exclude ={xxx}
,
but cannot find any method to disable the EnvironmentPostProcessor. This blocks me from doing any test. Anyone can help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论