老師同學們有遇到這個問題的嗎?感謝指教?。憸y試類的時候一直報這個錯,郁悶啊,
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'areaDao' defined in file [E:\lx\github\java\demo\target\classes\com\imooc\demo\dao\AreaDao.class]: Unsatisfied dependency expressed through bean property 'sqlSess
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'areaDao' defined in file [E:\lx\github\java\demo\target\classes\com\imooc\demo\dao\AreaDao.class]: Unsatisfied dependency expressed through bean property 'sqlSess
2018-03-31
對的樓下說的對,我的也是我的server.context-path要報錯,寫成server.servlet.context-path才行
2018-03-29
我加了項目路徑后,報以下錯誤Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 29 11:12:51 GMT+08:00 2018
There was an unexpected error (type=Not Found, status=404).
No message available
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar 29 11:12:51 GMT+08:00 2018
There was an unexpected error (type=Not Found, status=404).
No message available
2018-03-29
如果還沒有配置數(shù)據(jù)源,在啟動類配置要加上@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
2018-03-29