好難得有后端課程講到小程序,通過學習可以快速的體驗一下小程序。雖然是做后端,但如果懂前端技術,與前端合作起來會愉快些。特別對于在小公司,基本沒有接口文檔,都是寫好接口,再把接口給前端,接口的質量,會對前端的調用有很大的影響。
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