SpringBoot默认使用内置的tomcat容器启动
若要改为jetty容器启动,需要排除tomcat依赖,添加jetty容器依赖。
org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat org.springframework.boot spring-boot-starter-jetty
本文共 506 字,大约阅读时间需要 1 分钟。
SpringBoot默认使用内置的tomcat容器启动
若要改为jetty容器启动,需要排除tomcat依赖,添加jetty容器依赖。
org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat org.springframework.boot spring-boot-starter-jetty
转载于:https://my.oschina.net/mengzhang6/blog/2245373