weblogic.j2ee.dd.xml.AnnotationProcessException(基于 weblogic 12c 和 spring5 java 的配置)

weblogic.j2ee.dd.xml.AnnotationProcessException ( weblogic 12c and spring5 java based config)

Hi am new to spring mvc java based configuration,

i get this error when i run this app on weblogic 12c,

weblogic.j2ee.dd.xml.AnnotationProcessException: [HTTP:101396]Either the urlPatterns or the value attribute in the WebServlet annotation MUST be present.

然而,同一个项目在 tomcat 中按预期运行。那我做错了什么?

我找到了解决方案,我意识到这一定是一个基于 xml 的错误,我使用的 web.xml 版本是 3.1,我不得不将我的 web.xml 降级到 2.4,这是对我有帮助的话题 https://community.oracle.com/message/14757320#14757320,希望有人觉得这有用。