好难得有后端课程讲到小程序,通过学习可以快速的体验一下小程序。虽然是做后端,但如果懂前端技术,与前端合作起来会愉快些。特别对于在小公司,基本没有接口文档,都是写好接口,再把接口给前端,接口的质量,会对前端的调用有很大的影响。
2018-04-01
解决了 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