Sunday, April 19, 2020

[Spring] Create Spring Project

Create Spring Project


In the package developer, right-click and click New - Spring Legacy Project.



Enter a name for the project, select the Spring Web MVC template to which Maven belongs, and move on.



Sets the package path. You must use at least three words based on the point.



You can see that the project was created as above.



To use the latest version of the spring, change and save the version in pom.xml as shown above.

Workaround in case of Maven build errors (verification of version)

The build settings have been changed as above, but an error may occur, which means the build may fail; if so, you must confirm the Java version in each of the project settings as shown below.


Select a project, right-click it, and click Properties.



Check if the Java compiler version is 1.8 or not, change it to 1.8.



Go to Project Faces and check if Java version is 1.8 and change it.



Go to Java Build Path and check if jre version is 1.8 and change it.

No comments:

Post a Comment