我得到了一个用于容器化的Java Spring应用程序。我使用的是Tomcat8/Java8基础镜像。当它启动时,它无法部署,并出现以下错误:
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'controller3P' for bean class [com.******.******.brand3P.controller.Controller3P] conflicts with existing, non-compatible bean definition of same name and class [com.******.******.Brand3P.controller.Controller3P]这里的问题似乎是Spring发现了两个冲突的类,分别是"Brand3P“和"brand3P”。
但是,在源代码中,我找不到对"Brand3P“类的引用,只能找到"brand3P”类。
有人能解释一下Spring在这里做什么吗?
(友好点,我是运营人员,不是开发人员)
发布于 2017-03-09 18:19:26
Git包名称应全部小写,签出此处oracle doc
发布于 2017-03-09 18:44:17
事实证明,这是Jenkins中构建的一个问题。代码已更改(Brand3P -> brand3P),但旧的类名仍在Jenkins工作区中,并被捆绑到Docker镜像中。
我们删除了工作区,重新运行构建,一切正常。
https://stackoverflow.com/questions/42692307
复制相似问题