Eclipse如何配置Tomcat服务器?
Eclipse如何配置Tomcat服务器。
操作方法
- 01
单击“window”菜单,选择下方的“Preferences”
- 02
找到Server下方的Runtime Environment,单击右方的Add按钮
- 03
已经成功安装的Tomcat版本,单击Next
- 04
设置Tomcat的安装目录
- 05
设置完成后,单击OK即可完成设置!
- 06
若出现乱码,则修改Servers 的server.xml文件, 将 修改为如下内容: <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="80000" minSpareThreads="512"/> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="600000" redirectPort="8443" enableLookups="false" acceptCount="40000" executor="tomcatThreadPool" maxThreads="80000" useBodyEncodingForURI="true" URIEncoding="UTF-8" disableUploadTimeout="true" compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain,application/xhtml+xml,application/x-javascript,application/javascript,text/xhtml"/>