|
|
活泼的弓箭 · 使用opencsv实现Csv与Java对象转 ...· 1 月前 · |
|
|
威武的冰棍 · Rust language support ...· 3 周前 · |
|
|
风度翩翩的豆腐 · springboot整合shardingsp ...· 3 周前 · |
|
|
睡不着的楼房 · spring.main.allow-bean ...· 3 周前 · |
|
|
阳刚的枕头 · 规格参数| Galaxy S24 ...· 4 月前 · |
|
|
旅途中的拐杖 · GCTA | Yang Lab· 4 月前 · |
|
|
爱笑的汉堡包 · 《美丽背后》开播 杜淳张俪领衔四大看点_手机新浪网· 1 年前 · |
|
|
含蓄的弓箭 · 发送到多个电子邮件地址但只显示一个C#_使用 ...· 1 年前 · |
|
|
力能扛鼎的烤面包 · SYSUTCDATETIME ...· 1 年前 · |
|
|
彷徨的铁链
3 月前 |
org.springframework.beans.factory.support.BeanDefinitionOverrideException::在类路径资源org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class:中定义了名称“conversionServicePostProcessor”的weblogic.application.ModuleException无效bean定义不能注册bean定义[根bean:类org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration;scope=;abstract=false;lazyInit=null;autowireMode=3;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=conversionServicePostProcessor;initMethodName=null;destroyMethodName=(推断);在类路径资源org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]中为bean定义了“转换conversionServicePostProcessor”:已经存在[根bean:类org.springframework.security.config.annotation.web.reactive.WebFluxSecurityConfiguration;scope=;abstract=false;lazyInit=null;autowireMode=3;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=conversionServicePostProcessor;initMethodName=null;destroyMethodName=(推断);
如何消除错误并使用我的反应性弹簧安全性?
我尝试将web应用程序类型设置为反应性,但仍然会出现相同的错误。
发布于 2022-03-02 15:19:58
造成此异常的原因是spring和spring-反应堆都在类路径上,并且都触发了它们的自动配置bean,这会导致冲突--在我的例子中,主要是在单元测试中。
要防止此异常,您必须执行以下操作:
禁用要排除的web模块的自动配置:
@EnableAutoConfiguration(exclude = [WebMvcAutoConfiguration::class, ManagementWebSecurityAutoConfiguration::class]) class MyTest {...}
spring.main.allow-bean-definition-overriding=true
https://stackoverflow.com/questions/67666916
复制相似问题
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
|
|
威武的冰棍 · Rust language support in 2025.1 LTA - SonarQube Server / Community Build - Sonar Community 3 周前 |
|
|
旅途中的拐杖 · GCTA | Yang Lab 4 月前 |
|
|
爱笑的汉堡包 · 《美丽背后》开播 杜淳张俪领衔四大看点_手机新浪网 1 年前 |