-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename 2016-09-05-eclipse-tomcat-8.5.4.md to 2016-09-05-ec…
…lipse-tomcat-8.5.x.md
- Loading branch information
Showing
2 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
layout: post | ||
category: ["eclipse", "tomcat"] | ||
title: "在Eclipse中配置Tomcat8.5.x" | ||
tags: ["Eclipse", "Tomcat"] | ||
--- | ||
|
||
因为eclipse中配置tomcat的时候,eclipse会去获取tomcat的版本,[Tomcat 8.5.x 分支来自于Tomcat 9.0.0 M4版本](http://tomcat.apache.org/tomcat-8.5-doc/changelog.html),所以我们只要做个伪装即可。 | ||
|
||
首先先进入到tomcat的lib目录。 | ||
|
||
#### 方法一: | ||
|
||
找到catalina.jar,打开catalina.jar/org/apache/catalina/util/ServerInfo.properties文件,修改server.info的参数: | ||
|
||
server.info=Apache Tomcat/9.0.5 | ||
|
||
#### 方法二: | ||
|
||
在lib目录下创建如下目录: | ||
|
||
org/apache/catalina/util | ||
|
||
将方法一中找到的ServerInfo.properties文件复制到此目录,修改server.info的参数: | ||
|
||
server.info=Apache Tomcat/9.0.5 | ||
|
||
然后在eclipse中,按照9.0的tomcat去配置就行了。 |