I made my own implementation of ClientDetailsService:
@Service
public class JpaClientDetailsService implements ClientDetailsService {
@Autowired
private
I do not understand why, but if I inject my bean directly instead of injecting the interface, it works :
public class OAuth2ServerConfig extends AuthorizationServerConfigurerAdapter {
...
@Autowired
private JpaClientDetailsService clientDetailsService;
...
it also works if I annotate my service with @Primary annotation:
@Service
@Primary
public class JpaClientDetailsService implements ClientDetailsService {