このチュートリアルの後に、次の依存関係を使用して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>
、私のような突堤サーバを設定できる方法:
- 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
私のために働きます。春の起動時にサンプルをチェックしてください。 –