问题
整合Spring MVC由于用到jstl,所以引入jstl标签用的jar包,启动tomcat时控制台出现了如下的输出:
十月 12, 2017 9:48:18 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
十月 12, 2017 9:48:18 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.47
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
十月 12, 2017 9:48:22 上午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
十月 12, 2017 9:48:23 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
解决方法
由于standard.jar与jstl.jar需一起使用,但是jstl 1.2版本的就不需要这个standard.jar包了,而本人使用的正是jstl 1.2.jar这个jar包,去掉standard.jar文件后重启tomcat就不会再出现上述信息。
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
本文由 张闹闹 创作,仅供学习交流,如有错误欢迎指出。 可自由转载、引用,但需署名作者且注明文章出处。
网友评论