Thank you for providing this boilerplate, very helpful! 👌
I wanted to upgrade to spring boot 2.2.1, and seeing some tests fail:
With error message:
Description:
Field userRepository in com.example.demo.security.SecurityConfig required a bean of type 'com.example.demo.repository.UserRepository' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.example.demo.repository.UserRepository' in your configuration.
The application does run without issues so I'm not sure why this error message is present, and why only some of the tests. For example, for the UserController and UserRepository there's no error.
Hello,
Thank you for providing this boilerplate, very helpful! 👌
I wanted to upgrade to spring boot 2.2.1, and seeing some tests fail:
With error message:
The application does run without issues so I'm not sure why this error message is present, and why only some of the tests. For example, for the
UserController
andUserRepository
there's no error.Any idea where this could be coming from?
Thanks!