解决了 Unsatisfied dependency expressed through field 'areaDao';的原因是DataSourceConfiguration类的@mappersan 后面要根据自己的项目名改。。
2018-04-01
Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
看了n多遍也下了源码,实在没找到问题是哪。。
看了n多遍也下了源码,实在没找到问题是哪。。
2018-04-01
@Qualifier("dataSource") datasource是红的
2018-03-31
老师同学们有遇到这个问题的吗?感谢指教!!写测试类的时候一直报这个错,郁闷啊,
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
已采纳回答 / 慕田峪2374739
com.keiko.demo.config.daocom.mchange.v2.c3p0.ComboPooledDataSourceorg.mybatis.spring.annotation.org.springframework.beans.factory.annotation.org.springframework.context.annotation.org.springframework.context.annotation.java.beans.PropertyVetoException...
2018-03-31
讲师回答 / 翔仔
同学好,你感兴趣的话可以试着那样写看能否奏效,有时候框架设计者要这样咱也没办法,要不就自己写个扩展改造一下,要不就只能遵从,其实不必纠结这个,学好原理一通百通。
2018-03-30
讲师回答 / 翔仔
同学好,同学可以对比下源码 源码没问题微信小程序后台: https://gitee.com/xiangze/demo 微信小程序前端:https://gitee.com/xiangze/areadisplay 主要对比service部分的配置即可
2018-03-29
对的楼下说的对,我的也是我的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