Skip to content

Commit

Permalink
Update and rename 2016-09-05-eclipse-tomcat-8.5.4.md to 2016-09-05-ec…
Browse files Browse the repository at this point in the history
…lipse-tomcat-8.5.x.md
  • Loading branch information
zbc0512 authored Sep 5, 2016
1 parent 482bb39 commit 23ca9bb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
26 changes: 0 additions & 26 deletions _posts/2016-09-05-eclipse-tomcat-8.5.4.md

This file was deleted.

28 changes: 28 additions & 0 deletions _posts/2016-09-05-eclipse-tomcat-8.5.x.md
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去配置就行了。

0 comments on commit 23ca9bb

Please sign in to comment.