gradlew bootRunが88%EXECUTINGで止まる
解決したいこと
SpringBootで包み込むVue.js開発環境 カンタン構築
https://qiita.com/hiroe-mkk/items/f065a27e924f4d21a715#%E8%BF%BD%E8%A8%98
の最後のアプリケーション作成のところでgradlew bootRunを実行すると、
「88% EXECUTING」のログが表示されたまま、1時間放置しても進まない。
エラーっぽいログが出ていないのでどうしたらよいのか分からず、なにか解決できるような手段があれば、ぜひ教えていただきたいです
Spring Boot プロジェクトを作成するときのDependenciesはSpring Web、Thymeleaf、Spring Boot DevTools を追加
java version "21.0.4"(23でダメだったので試しに21にしています)
Gradle versison 8.11.1
(追記)
gradlew bootRun --debug実行ログ
①Waiting to acquire shared lock on daemon addresses registry.
②Lock acquired on daemon addresses registry.
③Releasing lock on daemon addresses registry.
①~③を永遠ループしている
発生している問題・エラー
gradlew bootRunの実行ログ
C:\Users\owner\Desktop\VS_Code_workspace\demo>gradlew bootRun
Starting a Gradle Daemon, 8 stopped Daemons could not be reused, use --status for details
> Task :frontend:npm_run_build
> frontend@1.0.0 build
> webpack
asset js/vendor.bundle.js 706 KiB [compared for emit] (name: vendor)
runtime modules 891 bytes 4 modules
modules by path ./node_modules/@vue/ 573 KiB
./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js 56.2 KiB [built] [code generated]
./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js 256 KiB [built] [code generated]
./node_modules/@vue/shared/dist/shared.esm-bundler.js 22 KiB [built] [code generated]
./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js 19.9 KiB [built] [code generated]
./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js 49.8 KiB [built] [code generated] ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js 169 KiB [built] [code generated]
./node_modules/vue/dist/vue.esm-bundler.js 2.14 KiB [built] [code generated]
webpack 5.96.1 compiled successfully in 748 ms
> Task :bootRun
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.4.0)
2024-12-01T21:15:51.527+09:00 INFO 18240 --- [demo] [ restartedMain] com.example.demo.DemoApplication : Starting DemoApplication using Java 21.0.4 with PID 18240 (C:\Users\owner\Desktop\VS_Code_workspace\demo\build\classes\java\main started by owner in C:\Users\owner\Desktop\VS_Code_workspace\demo)
2024-12-01T21:15:51.531+09:00 INFO 18240 --- [demo] [ restartedMain] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2024-12-01T21:15:51.600+09:00 INFO 18240 --- [demo] [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2024-12-01T21:15:51.600+09:00 INFO 18240 --- [demo] [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2024-12-01T21:15:53.097+09:00 INFO 18240 --- [demo] [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2024-12-01T21:15:53.121+09:00 INFO 18240 --- [demo] [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-12-01T21:15:53.122+09:00 INFO 18240 --- [demo] [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.33]
2024-12-01T21:15:53.190+09:00 INFO 18240 --- [demo] [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-12-01T21:15:53.192+09:00 INFO 18240 --- [demo] [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1590 ms
2024-12-01T21:15:53.355+09:00 INFO 18240 --- [demo] [ restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2024-12-01T21:15:53.699+09:00 INFO 18240 --- [demo] [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2024-12-01T21:15:53.737+09:00 INFO 18240 --- [demo] [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2024-12-01T21:15:53.747+09:00 INFO 18240 --- [demo] [ restartedMain] com.example.demo.DemoApplication : Started DemoApplication in 2.808 seconds (process running for 3.423)
<===========--> 88% EXECUTING [1m 5s]
> :bootRun
または、問題・エラーが起きている画像をここにドラッグアンドドロップ
自分で試したこと
・gradlew --stop成功
gradlew clean成功
gradlew build --refresh-dependencies成功
→gradlew bootRun失敗
・8080ポートのプロセス終了
・C:\Users<ユーザー名>.gradleのロックファイル削除