私はSpring Bootで簡単な "Hello World"を実装しています。 - 私の「Java Aplicationとして実行」私はエラーを得たように私はクラスSpringbootHelloworldApplication.javaを実行すると、チュートリアルSpringBoot HelloWorldtomcat connector change port
を次
*************************** APPLICATION FAILED TO START
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
私は、サーバーでダブルクリックをした、そしてそれは、これを持っています設定:
- 私、私はデフォルトのポートを変更する必要があるポート8080を使用していませんか?
server.xmlファイルがあります。
<Connector port="8085" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
application.propertiesファイルに 'server.port ='を追加してください。 –
pvpkiran
@pvpkiranこのファイルを見つけるためのパスは何ですか、 – andreahg
を再度読んでください。リソースの下にあるはずです – pvpkiran