dropwizardの
調べた
1.参考サイト
How to set context path with Default server? Dropwizard 0.7.1 Configuration Reference | Dropwizard Dropwizard 0.9.1 Configuration Reference | Dropwizard
2.やり 方
2.1 SimpleServerFactoryを 使用する 場合
ymlファイルの
applicationContextPath、
1ポートに
server: type: simple applicationContextPath: /application adminContextPath: /admin connector: type: http port: 8080
example.ymlに
server typeが
“use the simple server factory if you only want to run on a single port”
※connectorと
2.2 DefaultServerFactoryを 使用する 場合
ymlファイルの
1ポートに
割り
代わり?に、
server: type: default adminMinThreads: 1 adminMaxThreads: 64 applicationContextPath: / applicationConnectors: - type: http port: 8080 - type: https port: 8443 keyStorePath: example.keystore keyStorePassword: example validateCerts: false adminContextPath: /admin adminConnectors: - type: http port: 8081 - type: https port: 8444 keyStorePath: example.keystore keyStorePassword: example validateCerts: false
type: default
の
3. SimpleServerFactoryで 複数ポートで listenできない 理由
実装を
で、
そういえば、
ポートが
アプリの
開発環境での
(もっと
と
以上です。
コメント