啟動(dòng)報(bào)錯(cuò)Failed to auto-configure a DataSource的問題解決
原因:dependency中加入mybatis-spring-boot-starter卻未鏈接數(shù)據(jù)庫(kù)
解決辦法兩種:
1.將這個(gè)依賴注釋<!--<dependency> ....</dependency>-->
2.啟動(dòng)類上修改@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
或@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
原因:dependency中加入mybatis-spring-boot-starter卻未鏈接數(shù)據(jù)庫(kù)
解決辦法兩種:
1.將這個(gè)依賴注釋<!--<dependency> ....</dependency>-->
2.啟動(dòng)類上修改@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
或@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
2018-05-10
老師,我的老師報(bào)錯(cuò),測(cè)試類里面報(bào)錯(cuò):
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AreaDao.queryArea
可是該配的都配了,已經(jīng)找了很久的毛病了,還是找不到
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AreaDao.queryArea
可是該配的都配了,已經(jīng)找了很久的毛病了,還是找不到
2018-05-10
data.list.splice(e.target.dataset.index,1) 根據(jù)index,刪除一個(gè)
2018-05-10
c3p0的jar包一定要最新版的,不然會(huì)報(bào)錯(cuò)。。。比如abstract之類的,想要jar包的可以找我要
2018-05-08
視頻好像少了一段啊,我根據(jù)老師的代碼自己嘗試?yán)斫鈱懥艘粋€(gè),歡迎大家關(guān)注我的github:
https://github.com/bjchen2/WxProgram
下面是老師的源碼
https://gitee.com/xiangze/areadisplay/blob/master/pages/operation/operation.wxml#
https://github.com/bjchen2/WxProgram
下面是老師的源碼
https://gitee.com/xiangze/areadisplay/blob/master/pages/operation/operation.wxml#
2018-05-04
回復(fù)模擬器能取值,但是手機(jī)上取不到的那個(gè)
你的數(shù)據(jù)庫(kù)是存在本地的,所以你用手機(jī)肯定訪問不到你的數(shù)據(jù)庫(kù)啊
你的數(shù)據(jù)庫(kù)是存在本地的,所以你用手機(jī)肯定訪問不到你的數(shù)據(jù)庫(kù)啊
2018-05-03
基于自己理解在老師的代碼上進(jìn)行了修改,盡可能的使用springboot特性,簡(jiǎn)化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構(gòu)造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規(guī)范):
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03
基于自己理解在老師的代碼上進(jìn)行了修改,盡可能的使用springboot特性,簡(jiǎn)化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構(gòu)造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規(guī)范):
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03
基于自己理解在老師的代碼上進(jìn)行了修改,盡可能的使用springboot特性,簡(jiǎn)化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構(gòu)造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規(guī)范):
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關(guān)注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03
好了 ,徹底跟不上。哎。呼叫出來(lái)的自動(dòng)補(bǔ)全內(nèi)容不一樣。哈哈。。估計(jì)還是要從基礎(chǔ)來(lái)
2018-05-02