In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you how to do "SpringBoot startup automatic termination does not report errors". The content is simple and easy to understand, and the organization is clear. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "SpringBoot startup automatic termination does not report errors".
SpringBoot automatically terminates without error
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. Disconnected from the target VM, address: '127.0.0.1:57137', transport: 'socket' Process finished with exit code 1
reason
SpringBoot boot boot encountered this problem do not panic, there are likely to be many reasons, I also searched a lot on the Internet, but did not solve the problem, later found because the annotation @ComponentScan scanned a non-existent package
solutions
Go to try-catch startup class; at this time, you can see the specific cause of the error in the console, and it is convenient to solve it.
Springboot automatically hangs up after a period of time
The project integrates the front-end code and the back-end code. After a period of time, it automatically exits. There is no problem with the log, which reads as follows:
solutions
Originally used:
java -jar -Xmx1024M *.jar >./ app.log &
Replace with the following:
nohup java -jar -Xmx1024M *.jar >./ app.log &
Problem solved!
nohup = no hang up
Nohup command:
If you are running a program and feel that the process will not end when you exit the account, you can use the nohup command. This command can continue to run the corresponding program after logging out of the account or closing the terminal. By default, all output from this job is redirected to a file named nohup.out.
Command Runs the command specified by the Command parameter and any associated Arg parameters. Ignore all hang signals. To run the nohup command in the background, add &(symbol for "and") to the end of the command
The above is "SpringBoot automatic termination also does not report error how to do" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.