eclipse中報錯HTTP Status 500 - Servlet.init() for servlet SSMTest-dispatcher threw exception
eclipse中項目名稱叫SSMTest ?從index.jsp啟動后路徑是http://localhost:8080/SSMTest/index.jsp 是不是改成http://localhost:8080/SSMTest/seckill/list就行了? 報錯org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file
2017-02-21
項目的訪問路徑,就按照你controller里所寫的訪問就好。
你報錯的信息BeanCreationException來看他說的是 spring Bean 創建的異常,“Error creating bean with name 'sqlSessionFactory' defined in file” 它的意思就是說 在你的spring配置文件中 沒有“sqlSessionFactory”相關的配置,所以你檢查一下配置文件是否配置正確,配置文件是否加載,以及相關jar包是否完整等