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\"
You are missing repository configuration, as you have to configure it using @Repository
,
Following is incorrect,
public interface UsuarioRepository extends JpaRepository {
Rather it should be configured as repository as follows,
@Repository
public interface UsuarioRepository extends JpaRepository {
This will make it a bean to be scanned and treat it as a repository and then your following code should work as expected as well,
@Autowired
private UsuarioRepository usuarioDao;