Why latest STS doesn't supprot latest Spring 4.2.4? - spring

I just downloaded the STS (Spring Tool Suite) and created a simple Spring project.
But the supported Spring version is as below:
Why the latest Spring 4.2.4 is not listed? How can I add it?

I think, it's because they are in favor of Spring-boot. You can create a Spring Starter Project instead and it will come with the lastest version of spring.

Related

spring initializr 2.3.x removed

Spring Boot 2.3.12.RELEASE was released on 10th Jun 2021 and in July it's been removed from "spring initializr" page (https://start.spring.io/).
https://spring.io/blog/2021/06/10/spring-boot-2-3-12-release-available-now
My questions:
Is 2.3.x deprecated already?
If I want to generate a new Spring Boot project for version 2.3.12, how can I do it? It no longer can be done from "spring initializr" page.
Is 2.3.x deprecated already?
Yes. Spring Boot 2.3.x was removed from https://start.spring.io as 2.3.x reached the end of its open source support period on 15 May 2021.
If I want to generate a new Spring Boot project for version 2.3.12, how can I do it?
Ideally, you shouldn't. Any existing projects that are using Spring Boot 2.3.x should be updated to 2.4.x or 2.5.x as soon as possible and new projects should use 2.4.x or 2.5.x from the outset.
If you have to start a new project using an unsupported version of Spring Boot, you could generate the project and then modify the version in the pom.xml or build.gradle file to downgrade the version. This may get harder to do the longer the version has been out of support.
If you are using Spring Cloud, you can use start.spring.io's info endpoint to help with version mappings:
…
"spring-cloud": {
"2020.0.0": "Spring Boot >=2.4.0.M4 and <=2.4.0",
"2020.0.0-M3": "Spring Boot >=2.4.0.M1 and <=2.4.0.M1",
"2020.0.0-M4": "Spring Boot >=2.4.0.M2 and <=2.4.0-M3",
"2020.0.3": "Spring Boot >=2.4.1 and <2.5.4-SNAPSHOT",
"2020.0.4-SNAPSHOT": "Spring Boot >=2.5.4-SNAPSHOT",
"Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1"
},
…
The above indicates that Spring Cloud Hoxton.SR12 should be used with Spring Boot 2.3.x (and 2.2.x).
Note that Spring Cloud Hoxton is also out of its OSS support period so you really should be looking to upgrade to Spring Boot 2.4.x or 2.5.x and Spring Cloud 2020.0.x.
Answer-1: Check #andy-wilkinson's answer.
Answer-2: You can use Spring-CLI
Steps:
Install Spring-CLI
Run following command
spring init --boot-version=2.3.12.RELEASE --dependencies=web,data-jpa
old-boot-project
For more on Spring-CLI. Please check official documents here

How do I find out if a component is compatible with the current version of Spring

For a given spring version how do I find out which if the latest version of a component is supported or not,For example-if we are using spring boot (v1.5.8.RELEASE) ,how do I know if that spring version supports the latest version of a component say netty-all (4.1.63.Final) or the spring boot version does not support it and needs a spring version upgrade
I guess you put the version into your POM and run your tests. Then you'll see.

Can I be able to run my Spring roo project developed in STS with Roo version 1.3.1 in the latest version of Roo

We have developed a Spring roo project in STS with roo 1.3.1. I have now updated my STS to the latest version and installed roo 2.0.0 in it. When I try to import the existing roo project does not build successfully.
Can some one please tell me whether there is any compatibility issues with different versions of roo?
It was complaining about 2 dependency jars. So I added the below code.
<!-- https://mvnrepository.com/artifact/org.springframework.roo.wrapping/org.springframework.roo.wrapping.inflector -->
<dependency>
<groupId>org.springframework.roo.wrapping</groupId>
<artifactId>org.springframework.roo.wrapping.inflector</artifactId>
<version>0.7.0.010</version>
</dependency>
the above dependency was not needed for older roo version.
Eventhough I added the above code it is not working as expected.
Sorry, there is no way to do that. Spring Roo 2.0 has changed all its architecture and there is no way to migrate a project from 1.3 to 2.0.
By example:
Generated project in 2.0 is build on top Spring Boot
Data access layer has been changed from Active Record pattern to Repository (using Spring Data)
Default UI layer in 2.0 is based on Thymeleaft instead of JSP and tagx
There is no support in 2.0 for Reverse Engineering feature
To see the differences just try to generated the clinic.roo script in both versions and compare the projects.

Spring Boot versions compatibility with Vaadin framework versions

We are currently using the following frameworks and its versions.
Spring Boot parent - 1.4.5.RELEASE
Vaadin-Bom - 7.7.3
Vaadin Spring Boot Starter - 1.1.0
Vaadin-Spring - 1.1.0
Planning to upgrade the spring boot parent version. But i'm sure if we upgrade the spring boot parent version, then need to upgrade the Vaadin dependencies.
I spent few days to find the latest Vaadin frameworks compatibility with the
Spring Boot jars. But couldn't able to arrive at solution. Could you please share your suggestions.
Thanks in Advance!!!
Since Vaadin 7 end-of-life happened already I would suggest migrating to Vaadin 8. You can check the versions in Vaadin 8 full stack app starter with Spring

Can I use spring security with Spring 4.0?

We were starting to build a new web application and thought of using Spring 4.0. We wanted to use Spring security as well and I can see only 3.2.6 version is available for that. Just wanted to check if it is compatible with 4.0 or not?
Yes .Spring Security latest version 3.2.0 is built against Spring 3.2.6 , but it is tested against Spring 4.
If you use Maven , you have to resolve its transitive dependencies when using Spring 4 with Spring Security 3.2 .
For more information , please see this

Resources