Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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


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

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...