java – Spring Data JPA – Consider defining a bean named ‘entityManagerFactory’ in your configuration

I am developing an application in Spring, using Tomcat, Mysql5, Java8… The problem is that I cannot deploy it, due to “required bean ‘entityManagerFactory’ not found” problem. I have developed this project with my coworkers but they can perfectly deploy it with any problems, even if I copy-paste the same project in Spring Tool Suite. … Read more

spring – Error: Consider defining a bean of type ‘’ in your configuration

I am getting the following error message: APPLICATION FAILED TO START Description: Parameter 1 of constructor in dev.guilder.SnowballCalculator.UserManagement.Service.AppUserService required a bean of type ‘’ that could not be found. Action: Consider defining a bean of type ‘’ in your configuration. My WebSecurityConfig is: package dev.guilder.SnowballCalculator.Configurations; import dev.guilder.SnowballCalculator.UserManagement.Service.AppUserService; import lombok.AllArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import; … Read more