问题: org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs
Reason: The xml file in the resources is not packaged into the project when the idea is packaged
solve:
<!-- Copy all the xml files under the java directory to the classpath -- > < resources > <resource> <directory> src/main/java </directory> <includes> <include> **/*.properties </include> <include> **/*.xml </include> </includes> <filtering> true </filtering> </resource> </resources>
Question : About the solution to "Error code: ERR_UNSAFE_PORT" in Google Chrome
Reason : Google Chrome has its own reserved port
Solution : Ports like 6666-6669 cannot be used, it is not a server problem, but a port setting problem
问题:java.lang.NoSuchMethodError: org.springframework.core.io.ResourceEditor.<init>
Reason : spring version conflict, there is more than one spring version in the project
Solution : remove the conflict
Problem : The page doesn't parse EL expressions and displays something like ${name}
Reason : web.xml header file version problem
Solution : The modified version is as follows
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
Question : Is there garbled characters when the query condition is echoed?
Reason : You need to configure the encoding supported by the post request
Solution : Modify as follows
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
Question : After using dubbo, spring 2.5.6 sec03 causes jar package conflict?
Reason : need to exclude the spring dependency of dubbo
Solution : Modify as follows
<exclusions> <exclusion> <artifactId>spring</artifactId> <groupId>org.springframework</groupId> </exclusion> </exclusions>
问题:配置fastDFS的时候出现读取不到配置文件的现象?
原因:我用的idea,而配置文件.conf
解决:需要把conf的配置文件编译到classess目录下
读取classes下的配置文件
ClassPathResource resource = new ClassPathResource(path);
ClientGlobal.init(resource.getClassLoader().getResource(path).getPath());
<resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> <include>**/*.conf</include> </includes> <filtering>true</filtering> </resource>
问题:maven聚合工程的时候加入的sevlet等jar包不能够被子类继承?
原因:类型是provider的不能够被继承
解决:每一个需要的地方单独引入