Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Upgrade to spring-boot 2 #7

Open
data-mind opened this issue Jan 24, 2018 · 2 comments
Open

Upgrade to spring-boot 2 #7

data-mind opened this issue Jan 24, 2018 · 2 comments

Comments

@data-mind
Copy link

I have problem when upgrading this project to spring-boot 2.

First of all when upgrade spring-boot-starter-parent to

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.M7</version>
<relativePath /> <!-- lookup parent from repository -->

spring-security-oauth2 and spring-security-jwt are not available anymore so I set version manually like this:

<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.2.1.RELEASE</version>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-jwt</artifactId>
<version>1.0.9.RELEASE</version>

I also remove tests to build project with success. But when I run project as spring-boot application I got exception:

No qualifying bean of type 'org.springframework.security.authentication.AuthenticationManager' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

@hamit
Copy link

hamit commented Mar 22, 2018

You need to add spring-security-oauth2-autoconfigure to your classpath.

Ref: https://docs.spring.io/spring-security-oauth2-boot/docs/current-SNAPSHOT/reference/htmlsingle/

@kuchaguangjie
Copy link

Could the maintainer of this sample project upgrade the code to spring-boot 2 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants