RameshMF / registration-login-springboot-security-thymeleaf

registration-login-module using springboot, spring mvc, spring security and thymeleaf
https://www.javaguides.net/2018/10/user-registration-module-using-springboot-springmvc-springsecurity-hibernate5-thymeleaf-mysql.html
253 stars 189 forks source link

com.example.registrationlogindemo.service.impl.UserServiceImpl required a bean of type 'com.example.registrationlogindemo.repository.UserRepository' that could not be found. #10

Open harsh78878 opened 1 year ago

harsh78878 commented 1 year ago

Hi Team, below are error details pls suggest solution:-

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2023-04-27T02:46:45.492+05:30 ERROR 1372 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Parameter 0 of constructor in com.example.registrationlogindemo.service.impl.UserServiceImpl required a bean of type 'com.example.registrationlogindemo.repository.UserRepository' that could not be found.

Action:

Consider defining a bean of type 'com.example.registrationlogindemo.repository.UserRepository' in your configuration.

Satyam-2022 commented 6 months ago

Make sure that the UserRepository interface is annotated with @Repository.