Tomcat: FAIL - Application at context path /employee could not be started

后端 未结 1 1168
说谎
说谎 2021-01-25 01:27

I am new to Spring MVC. Tried to build the project with the security login, but can not start .war in tomcat.

FAIL - Application at context path /emplo

1条回答
  •  -上瘾入骨i
    2021-01-25 01:49

    The log states: "No matching bean of type [org.hibernate.SessionFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency".

    You could define it in the applicationContext.xml as shown in this question. Using ApplicationContext in Spring MVC.

    It would be something like

    
            
            
              
                UserAccount.hbm.xml
                ...
              
            
            
              
                ${hibernate.dialect}
                ${hibernate.show_sql}
                
            
          
    

    Hope it helps.

    0 讨论(0)
提交回复
热议问题