2015-03-25 14:41:43 +00:00
|
|
|
|
### 64.14.1. 通过Maven使用Tomcat7
|
|
|
|
|
|
|
|
|
|
如果正在使用starter pom和parent,你只需要改变Tomcat的version属性,比如,对于一个简单的webapp或service:
|
|
|
|
|
```xml
|
|
|
|
|
<properties>
|
|
|
|
|
<tomcat.version>7.0.59</tomcat.version>
|
|
|
|
|
</properties>
|
|
|
|
|
<dependencies>
|
|
|
|
|
...
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
...
|
|
|
|
|
</dependencies>
|
|
|
|
|
```
|