Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

java - My spring application boot will not stop runing

when I start my spring app it will not stop even when I close it the main is:

 ConfigurableApplicationContext ctx=  SpringApplication.run(CouponProjectSpringApplication.class, args);
 System.out.println("AAAAAAAAAAAAAAAAAAAAAAA");
 ctx.close();

it wouldn't print neither he will stop

the git link is :https://github.com/torchkatannatlie/Coupon-Project.git I will appreciate your help

in the picture, you will see the output


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You code works right, but on your screenshot I don't see line like: Started CouponProjectSpringApplication in 1.935 seconds (JVM running for 2.349) From my point of view, you application didn't start, I mean command SpringApplication.run(CouponProjectSpringApplication.class, args); was not executed, or you have issue during startup process, please attach full application log.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...