Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What happened when tomcat started but the springboot project didn't start?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "tomcat started but springboot project did not start". In daily operation, I believe that many people have doubts about how tomcat started but springboot project did not start. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer "tomcat started but springboot project did not start". Next, please follow the editor to study!

Springboot version: 2.1.4

Project specified jdk version: 11

Default Java_Home (JDK version) for the release environment: 1.8

Compilation using JDK version: 11

Tomcat version: 9

Package the project into a war file through mvn clean package and put it into tomcat

Starting tomcat is normal, but the springboot project is not started.

After the search problem is not found, it is speculated that the release environment is inconsistent with the JDK version of the project

After changing the release environment Java_Home to JDK11, which is consistent with the project JDK, the problem is solved.

The cause of the problem:

The default JDK of JAVA_HOME is inconsistent with the version of JDK required by the project

This problem is caused by too much jdk installed and inconsistent settings for path and classpath.

Summary:

The JDK of the release environment needs to be consistent with the JDK of the springboot project in order to publish the project.

At this point, the study on "what happened when the tomcat started but the springboot project did not start" is over. I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report