- 解决方法1:取消勾选 总是用此应用打开
2. myeclipse编辑servlet时web.xml文件displayname报错
解决方法:
将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd”这段话加入到xml文件的"xmlns:xsi="的标签中
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
http://www.springmodules.org/schema/cache/springmodules-cache.xsd
http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
id="WebApp_ID" version="3.1">
3.eclipse删除旧tomcat,再配置新的tomcat后出现的问题解决方法:为项目添加tomcat的库
====》build path====>config build path====》=====》add library=====>server
runtime====>apach tomcat v8.0====finish====>apply and close
4.错误:Invalid <url-pattern> hello in servlet mapping
一般使用eclipse自动配置servlet,还是出现这种错误。到tomcat的webapps里面手动清理自己部署的项目后,问题解决
5.tomcat8已经内置解决了get方式提交的中文乱码问题。如果再写代码解决,会出错。