Spring Boot 2 OAuth2 starter changes [closed] - spring

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to migrate one of my projects from Spring Boot 1.5.10.RELASE to 2.0.0.RC1. And seems like they made some major changes in API, because I cannot find #EnableOAuth2Sso and UserInfoRestTemplateCustomizer that I used to make some configuration for Azure AD and OAuth2.
Where can I find new documentation or change list for Spring Boot 2.0.0 and OAuth2?

I recommend reading Spring Boot 2.0 official migration guide.
To quote from there, the most interesting thing for you will be:
Functionality from the Spring Security OAuth project is being migrated
to core Spring Security. Dependency management is no longer provided
for that dependency and Spring Boot 2 provides OAuth 2.0 client
support via Spring Security 5.

To elaborate on bjedrzejewski's answer with the specific artifact information and how I found it:
After discussions in an existing GitHub issue on spring boot, I was eventually led to the annotation's location in the 2.0.0 release. It has been moved to a project completely new to the 2.0.0 release artifacts.
To resolve this issue and migrate your project, add the artifact org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure to your dependency management configuration.

Related

Spring version update [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
I have some spring components in my project:
spring framework version 5.0.5.RELEASE
spring boot version 2.0.1.RELEASE
spring-boot-starter-security version 2.0.1.RELEASE
I want to upgrade spring-boot-starter-security up to version 2.7.8, but after that project doesn't start.
Is there something like a table which contains information about these versions compatibility?
spring boot version and any spring-boot-starter-* dependencies should all share the same version number. You shouldn't be updating any spring-boot-starter packages to be newer than the version of Spring Boot you are using. You generally would only declare the Spring Boot version number in your Gradle/Maven files, and have it automatically include the same version of the spring-boot-starter packages.
On top of that, each Spring Boot version is built on a specific version of Spring, and that's really the only version of Spring that that version of Spring Boot is guaranteed to be compatible with.
So I suggest looking at the Spring Boot releases page to determine which version of Spring Boot you want to upgrade to, that includes the versions of Spring and Spring Security you want to use.

Any Springfox alternatives out there? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Last two years I worked on Spring Boot Applications with Springfox. Springfox generate a documentation and a test ui for your REST API. This was awesome.
But actually Springfox project is dead and do not support the newest Spring. I have three questions
Is there any other way to generate Swagger UI directly? Any other library/project?
How do you implement swagger ui into your Spring Boot project?
I haven't tried it myself yet, but this looks quite promising:
https://github.com/springdoc/springdoc-openapi
OpenAPI 3.0 is the successor of Open API 2.0 (sometimes referred to as Swagger, though that is actually the tooling around Open API).
Not sure how much this project offers in terms of customization and how mature it is, but I guess it's worth a try ;-)
Update:
Since version 3, Spring Fox offers support for Open API 3. Please see the release log for more details.
Spring doc Open API is alternative going forward.
SpringDoc OpenAPI supports OAS 3.0
Supports more annotations like #MatrixParam which was not supported
in springfox.
Spring boot 2.2.x works only with springdoc.
Refer the below link
https://techsparx.com/software-development/openapi/spring-boot-rest-api-docs.html
https://github.com/RabiAPI/Evalon4J
This is a command line tool for generating java restful api documentation
Supported frameworks
Spring MVC
JAX-RS
Swagger 2.0 Annotations
OpenAPI 3.0 Annotations
JSR303 Bean Validation
Now it can export your api to markdown format.

Starting with spring boot [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I took a project which I have to use spring boot on it and I know some basic things about Spring but not too much. My question is should I learn Spring completely before start learn Spring boot or should I just start with Spring boot ? Thank you in advance.
As rnside mentioned, spring Boot helps us reducing the boilerplate code for any Spring based application. Some examples are:
It includes the dependencies for various Spring modules like core, web, mvc, etc.
We do not need the XML configuration for Spring when using Spring Boot.
It also includes embedded servers to run the application.
In order to configure anything in the application like DB, mail server, security credentials, etc. , we can do it just by writing it in the application properties file.
You can take a look at http://www.baeldung.com/intro-to-spring-boot if you want to learn how to start working on a Spring Boot app and make a basic application. Meanwhile, if you have any queries for things related to Spring, you can refer to other related links for it:
http://www.baeldung.com/spring-intro
http://www.baeldung.com/properties-with-spring
Some really good videos for this can be found here: https://javabrains.io/topics/spring
Hope that helps.
with only Spring , you can do everything without Spring Boot, Spring Boot helps you get things done faster .
Actually , Spring boot it's a suite of pre configured set of frameworks and technologies to reduce hard configuration providing you the shortest way to have a java webApp .But it still based on Spring , so as mentioned before , you need to know at least the basics of Spring .

Future of Spring-XD [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I heared rumors that Spring XD lost development drive and focus at Spring shifts towards cloud services. Since I'm considering XD (the otehr one I consider is Apache Beam, though not yet mature enough imho), I'd like to get some facts / release plan for the future of XD instead of relying on rumors.
The Spring XD homepage has an announcement at the bottom of the page:
Announcement
Building upon Spring Boot and Spring Cloud capabilities, Spring XD is actively being redesigned as Spring Cloud Data Flow - a cloud native programming and operating model for composable message-driven microservices. For more information and the reasons behind this redesign, please refer to Spring Cloud Data Flow's launch blog.
Spring XD's 1.3 GA will be the last release in the 1.x line and with this release, 1.x will be officially in maintenance mode, addressing only bug fixes.

Why using Spring DM? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
1/ did Spring DM is very used now on Enterprise Applications ? what are the benefits of this framework and why it seem like a dead technology
2/ I'm working on a Spring Application , I want to do it as an SOA and i don't know if spring DM will be useful for me.
3/ I have another question , we can integrate an open source solution ESB with Spring ? what's the best choice for ESB.
Thanks !
1) Spring DM is mostly abandoned by Spring, as well as OSGI support. See this key quote from the Spring creator in this important interview on the subject:
We have changed our views on OSGi over the years, and one of the
reasons for that is that OSGi simply cannot be made as easy to use and
as productive as we feel is consistent with Spring values.
See also SpringFramework Removes OSGi Metadata in Move to Gradle
2) and 3) try to use Spring Integration or Apache Camel, which is well integrated with Spring. Both allow to have ESB like functionality embedded in a normal WAR application, so no need for a separate ESB server.

Resources