如何解决ProGuard将使Spring Bean名称冲突
启动错误
2020-11-06 18:07:31.452 WARN 13120 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDeFinitionStoreException: Failed to parse configuration class [com.maple.MapleApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDeFinitionException: Annotation-specified bean name 'a' for bean class [com.maple.a.d.a.a] conflicts with existing,non-compatible bean deFinition of same name and class [com.maple.a.b.a]
2020-11-06 18:07:31.463 ERROR 13120 --- [ main] o.s.boot.SpringApplication : Application run Failed
org.springframework.beans.factory.BeanDeFinitionStoreException: Failed to parse configuration class [com.maple.MapleApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDeFinitionException: Annotation-specified bean name 'a' for bean class [com.maple.a.d.a.a] conflicts with existing,non-compatible bean deFinition of same name and class [com.maple.a.b.a]
我尝试使用Spring deFinition.getBeanClassName()命名规则,但是没有用。如果要在注释上手动设置每个bean的名称,是否会麻烦太多? ProGuard可以提供不重复类名称的功能吗?我还没找到。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。