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\"
In my case, i had wrong dependency: spring-data-jpa.
when i changed to spring-boot-starter-data-jpa, it solved the problem.
i didn't have to add any annotation @Repository nor @EnableJpa etc.