Java WebLogic 12c和Spring MVC错误403

Java WebLogic 12c和Spring MVC错误403,java,spring,spring-mvc,spring-security,weblogic,Java,Spring,Spring Mvc,Spring Security,Weblogic,我正试图在WebLogic12c上运行一个SpringMVC/Spring安全项目,但它遇到了一个问题。该项目是使用Tomcat创建的,但是在WL上,当我试图打开应该作为正常URL(http…/project/users/)工作的内容时,我总是会出现错误403(http…/project/)或404 该项目与SpringMVC(4.3.0版本)、SpringSecurity(4.1.1版本)和Thymeleaf(3.0.1版本)一起工作 web.xml文件包含: <web-app xmln

我正试图在WebLogic12c上运行一个SpringMVC/Spring安全项目,但它遇到了一个问题。该项目是使用Tomcat创建的,但是在WL上,当我试图打开应该作为正常URL(http…/project/users/)工作的内容时,我总是会出现错误403(http…/project/)或404

该项目与SpringMVC(4.3.0版本)、SpringSecurity(4.1.1版本)和Thymeleaf(3.0.1版本)一起工作

web.xml文件包含:

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
                         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">

<session-config>
    <session-timeout>30</session-timeout>
</session-config>

<error-page>
    <error-code>404</error-code>
    <location>/404</location>
</error-page>

30
404
/404

以及weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<context-root>project</context-root>
<session-descriptor>
    <cookie-name>PROJECT</cookie-name>
    <cookie-path>/project</cookie-path>
</session-descriptor>
</weblogic-web-app>

项目
项目
/计划
整个Spring配置是使用Java而不是XML文件进行的

我一直在尝试我在这里和其他论坛找到的不同选择,但直到现在我都找不到解决方案。

就是这样解决的。 对于用于初始化应用程序和安全性的类,实现WebApplicationInitializer。我的具体案例在JNDI方面有另一个问题,但它通过weblogic.xml中的几行代码和JPA类数据源中注释的参数得到了解决。

这样解决了。
对于用于初始化应用程序和安全性的类,实现WebApplicationInitializer。我的具体案例在JNDI方面有另一个问题,但它通过weblogic.xml中的几行代码和JPA类的数据源中的注释参数得到了解决。

我使用的是weblogic 12.1.3.0.0我使用的是weblogic 12.1.3.0.0