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 your ClienteSpringApplication you only have the @SpringBootApplication annotation, wich is the equivalent of @Configuration, @EnableAutoConfiguration and @ComponentScan. What you are missing is the @EnableJpaRepositories annotation.
package es.uc3m.tiw;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@EnableJpaRepositories
public class ClienteSpringApplication {
public static void main(String[] args) {
SpringApplication.run(ClienteSpringApplication.class, args);
}
}
If it doesn't work like that try adding also the package of your repository:
@EnableJpaRepositories("es.uc3m.tiw.dominios")