NoSuchBeanDefinitionException How to initialise SessionFactory bean?

后端 未结 3 1668
面向向阳花
面向向阳花 2021-01-13 22:15

I have a question. I tried to run my web application using Spring and Hibernate/ I have a strange error. NoSuchBeanDefinitionException. Stacktrace is:

Caused         


        
3条回答
  •  日久生厌
    2021-01-13 22:31

    Somtimes what Spring actually trying to say is:

    There are multiple bean definitions...
    

    I had this problem:

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'metadataGeneratorFilter' is defined
    

    once where I had an xml file like this:

    
    
    
        
    
    

提交回复
热议问题