Home > Back-end >  Why idea run springboot project Process finished with exit code 0
Why idea run springboot project Process finished with exit code 0

Time:12-30

With the idea for the first time to write springboot project, run don't know why to Process finished with exit code 0
In the baidu search a lot of methods, but can't,
Said many of them are the dependent on comments:

Org. Springframework. Boot
Spring - the boot - starter - tomcat
Provided

Comments but I still won't do, is there any bosses know how to solve

CodePudding user response:

Aye? This is not the end of the normal program print statements, code 1 is abnormal situation, like System. Exit (0) this

CodePudding user response:

The scope that line commented out, provided annotation dependency is only in for compilation and testing of dependence, will fail at run time, if you use the main method is directly in the IDE to run the project, provided means there won't be a tomcat server is started, the project not come naturally,

CodePudding user response:

refer to the second floor weixin_44815053 response:
the scope that line commented out, provided with dependency is only effective in compilation and testing of dependence, will fail at run time, if you use the main method is directly in the IDE to run the project, provided means there won't be a tomcat server is started, the project up to come naturally,

Has been solved, thank you for your reply

CodePudding user response:

refer to the third floor of shen reply:
Quote: refer to the second floor weixin_44815053 response:
the scope that line commented out, provided with dependency is only effective in compilation and testing of dependence, will fail at run time, if you use the main method is directly in the IDE to run the project, provided means there won't be a tomcat server is started, the project up to come naturally,

Has been solved, thank you for your reply


Has solved the also don't say how to solve, to share the reason is bad? Network is not only to get you, at the same time also need to contribute,
  • Related