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