実現したいこと
java -jar ****.jar
でアプリケーションを起動したい
前提
springbootでアプリケーションを作成しているのですがjarファイルの作成後にjava -jar ***.jar
を実行すると起動後にすぐシャットダウンしてしまいます。
つい1時間前にbuildしたjarファイルは問題なく起動できました。
発生している問題・エラーメッセージ
Running with Spring Boot, Spring ~~~ 23:13:11.678 [SpringApplicationShutdownHook] DEBUG org.springframework.context.annotation.AnnotationConfigApplicationContext -- Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@4278a03f, started on Mon Mar 27 23:13:11 JST 2023
該当のソースコード
- pom.xmlの依存関係
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies>
試したこと
- この辺りを確認しましたが有益な情報は得られませんでした。

回答1件
あなたの回答
tips
プレビュー
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
また依頼した内容が修正された場合は、修正依頼を取り消すようにしましょう。