eclipse导入遇到的坑
安装tomcat Eclipse中如何使用tomcat以及启动tomcat-百度经验 (baidu.com)
安装maven Eclipse配置Maven的详细完整步骤_yh991314的博客-优快云博客_eclipse安装maven
tomcat8
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8006" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener"/>
<Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>
<GlobalNamingResources>
<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
</GlobalNamingResources>
<Service name="Catalina0">
<Connector connectionTimeout="20000" port="81" protocol="HTTP/1.1" redirectPort="8448" URIEncoding="UTF-8"/>
<Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
<Context path="" docBase="D:\1work\libang3\libang\CODE\WebContent" debug="0" reloadable="false" autoDeploy="true" crossContext="true"></Context>
</Host>
</Engine>
</Service>
</Server>
1. 自己写的jar包,maven仓库没有,把包放到WebContent - web-INF - lib
右键项目 - properties
Add JARs
2. 更改Java 资源编译路径,为WEB-INF/classes路径 (三个都改)
更改Excluded:(None)
右键项目 - properties
WebContent/WEB-INF/classes
3. tomcat右键,add and remove
移到左边
查找
1 . ctrl + H ,查找全局文件,代码
2 . ctrl + shift + R ,查找全局文件
解决本来没啥,但是代码报错问题
html乱码