推荐先阅读
:Spring全家桶
使用Maven依赖管理变更起步依赖项
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <artifactId>spring-boot-starter-tomcat</artifactId> <groupId>org.springframework.boot</groupId> </exclusion> </exclusions> </dependency>
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> </dependency>
|
Jetty比Tomcat更轻量级、扩展性更强,谷歌搜索引擎(GAE)已全面切换为Jetty