Problem Description:
I recently planned to create a springboot project to develop the WeChat applet backend. However, after creating the project, I found that the startup class did not have a startup entry and showed that it was CurrentFile. The file style was also different from what was displayed before. I understand that it was not recognized as a Java project file. but a normal file
solution:
Right-click the pom.xml file, select Add as Maven Project
and wait...
After waiting for a few minutes, waiting for the maven dependencies to be downloaded, the startup sign has appeared.
Finally, let's start it and try it:
Oh, the JDK version is not supported. I thought about it, and it should be that the version I selected when I created the springboot project was 3.0. 5. As a result, JDK must reach 17,
so I can only change the version:
After adjusting the version, run it again:
it has been successfully run.
Summary: It’s not scary to encounter problems. What’s scary is that you lose the courage to overcome them. Come on, pay tribute to every practitioner on the road to coding!