老师同学们有遇到这个问题的吗?感谢指教!!写测试类的时候一直报这个错,郁闷啊,
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
如果还没有配置数据源,在启动类配置要加上@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
2018-03-29