spring_reference/IX. ‘How-to’ guides/64.14.1. Use Tomcat 7 with ...

17 lines
462 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 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>
```