Consider defining a bean named 'entityManagerFactory' in your configuration解决办法

时间:2024-12-26 15:33:44

错误信息:

***************************
APPLICATION FAILED TO START
*************************** Description: Field usuarioDao in es.uc3m.tiw.Controladores.Controlador required a bean named 'entityManagerFactory' that could not be found. Action: Consider defining a bean named 'entityManagerFactory' in your configuration.

解决:

删除 C:\Users\hanfuqingshi\.m2\repository\org\hibernate\hibernate-core目录下的文件,然后maven - update project即可。