啟動報錯Failed to auto-configure a DataSource的問題解決
原因:dependency中加入mybatis-spring-boot-starter卻未鏈接數據庫
解決辦法兩種:
1.將這個依賴注釋<!--<dependency> ....</dependency>-->
2.啟動類上修改@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
或@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
原因:dependency中加入mybatis-spring-boot-starter卻未鏈接數據庫
解決辦法兩種:
1.將這個依賴注釋<!--<dependency> ....</dependency>-->
2.啟動類上修改@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
或@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
2018-05-10
老師,我的老師報錯,測試類里面報錯:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AreaDao.queryArea
可是該配的都配了,已經找了很久的毛病了,還是找不到
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.AreaDao.queryArea
可是該配的都配了,已經找了很久的毛病了,還是找不到
2018-05-10
視頻好像少了一段啊,我根據老師的代碼自己嘗試理解寫了一個,歡迎大家關注我的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
基于自己理解在老師的代碼上進行了修改,盡可能的使用springboot特性,簡化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規范):
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03
基于自己理解在老師的代碼上進行了修改,盡可能的使用springboot特性,簡化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規范):
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03
基于自己理解在老師的代碼上進行了修改,盡可能的使用springboot特性,簡化代碼(如:除去datasource和sessionFactory類、mybatis.xml的構造,直接在SpringBoot中配置;修改controller訪問地址和訪問方式,盡可能符合restful規范):
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
有興趣的可以關注我的GitHub:https://github.com/bjchen2/WxProgram
2018-05-03