Java Spring应用中的大小写敏感问题
我得到了一个JavaSpring应用程序来进行容器化。我使用的是Tomcat8/Java8基本映像。引导时,它无法部署,出现以下错误:Java Spring应用中的大小写敏感问题,java,spring,docker,tomcat8,Java,Spring,Docker,Tomcat8,我得到了一个JavaSpring应用程序来进行容器化。我使用的是Tomcat8/Java8基本映像。引导时,它无法部署,出现以下错误: Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'controller3P' for bean class [com.******.******.brand3P.controll
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”
谁能解释一下春天在这里干什么
(好一点,我是行动组的,不是德夫)
事实证明,这是詹金斯内部版本的一个问题。代码已经更改(Brand3P->Brand3P),但是旧的类名挂在Jenkins工作区中,并被捆绑到Docker映像中
我们删除了工作区,重新运行了构建,一切都很好 谢谢。差不多就是这样,但我贴了一个单独的答案以防万一。