问题遇到的现象和发生背景
ssm框架整合
问题出现在web.xml文件里面的标签
问题相关代码,请勿粘贴截图
<!--注册Spring框架-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<!--这里有问题!!!!!!!-->
<param-value>classpath:applicationContext_*.xml</param-value>
</context-param>
运行结果及报错内容
09-Mar-2022 16:46:24.925 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [4.0]. Default version will be used.
09-Mar-2022 16:46:26.295 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
09-Mar-2022 16:46:27.367 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
09-Mar-2022 16:46:27.367 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2022-03-09 04:46:27,387] Artifact mimissm:war exploded: Error during artifact deployment. See server log for details.
09-Mar-2022 16:46:34.389 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tmocat\apache-tomcat-8.0.38\webapps\manager
09-Mar-2022 16:46:34.419 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tmocat\apache-tomcat-8.0.38\webapps\manager has finished in 30 ms
我的解答思路和尝试过的方法
把 context-param 标签里面的内容删除就可以启动tomcat
我想要达到的结果
能够使得 listener ,context-param两个标签能够正常使用,还能启动tomcat