How to create a simple Spring project running in the console using the latest version of STS (3.8.4.RELEASE)?

Today I downloaded the latest version of STS ( 3.8.4.RELEASE ), and I have some doubts, because it seems to me that something has changed.

I need to create a simple batch application (running in the console).

It seems to me that to create such a project in this new realease I have to do:

File -> Spring Legacy Project -> Simple Spring Maven

It seems to me that there is no other way to create a simple console project. Why is this project implemented in the Spring Legacy Project ? Can I do the same in a more modern way?

Another doubt is related to the Spring Version in the pom.xml file :

<spring-framework.version>3.2.3.RELEASE</spring-framework.version>

Why is the default version 3.2.3.RELEASE ? Can I replace it with a darker Spring 4 ^

+4
source share
1 answer

As the title of the "Spring Legacy Project" says, this is outdated functionality. He creates old Spring projects.

Spring is now promoting Spring boot applications, these applications have everything you need to configure by default. You only need to add the dependencies you need.

Now you need to use:

File → New - Spring Startup Project

In the first view, you are setting up a project. Where is maven or gradle etc.

, . , -, jdbc jpa .

, -, .

Spring

https://projects.spring.io/spring-boot/

+3

Source: https://habr.com/ru/post/1675815/


All Articles