IllegalArgumentException: At least one JPA metamodel must be present

前端 未结 4 1700
时光说笑
时光说笑 2020-12-01 15:53

while starting with spring rest I got following error as

org.springframework.beans.factory.BeanCreationException: Error creating bean with name \'j

4条回答
  •  忘掉有多难
    2020-12-01 16:31

    I've fixed it by setting newer version of Hibernate.

    
            org.springframework.boot
            spring-boot-starter-data-jpa
             
                 
                    org.hibernate
                    hibernate-entitymanager
                
                
                    org.hibernate
                    hibernate-core
                
            
        
    
        
            org.hibernate
            hibernate-core
            5.2.10.Final
        
    

    You can find a fully working example here: https://github.com/zobarov/ptc-task-executor

提交回复
热议问题