通過遵循本教程,我可以使用以下依賴項運行帶有Jetty的spring-boot。如何在spring-boot中配置Jetty(很容易?)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
但是,我怎麼能配置Jetty服務器如:
- Server線程(隊列線程池)
- 服務器連接器
- 的Https的配置。
- Jetty中提供的所有配置...?
有沒有一種簡單的方法在
- application.yml辦?
- 配置類?
任何示例將不勝感激。
非常感謝!
非常感謝您的解釋! – Elvin
添加該pom後無法啓動嵌入的容器,請您幫助檢查http://stackoverflow.com/questions/39557018/unable-to-start-embedded-container-after-switch-from-tomcat-to -jetty-spring-bo – Jaskey
適合我。檢查春季靴子中的樣品。 –