spring boot 2.2.4部署到weblogic12C上,抛出web.xml里面存在多个ContextLoader*
这个是web.xml
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3.0.xsd">
<context-param>
<param-name>springSecurityConfig</param-name>
<param-value>com.untiop.DzyyApplication</param-value>
</context-param>
<listener>
<!--<listener-class>org.springframework.boot.legacy.context.web.SpringBootContextLoaderListener</listener-class>-->
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>metricFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>metricFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>appServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextAttribute</param-name>
<param-value>org.springframework.web.context.WebApplicationContext.ROOT</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>appServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
这个是部署到weblogic 上的报错信息
有啥特殊要求吗咋部署到WebLogic上,直接就用springboot内嵌的tomcat或jetty运行不香吗?
你把它删了试一试