最贊回答 / 環轉碼
你可以看看你的實體類屬性命名是否是駝峰式命名,或者你的命名轉換為數據庫字段那個模式是否一致。我的不是駝峰式命名我的是和數據庫字段一樣的命名,然后把mybatis的配置里把自動駝峰式命名轉換改為false就好了。
2018-04-23
講師回答 / 翔仔
class path resource [{mybatis_config_file}] cannot be opened because it does not exist?報得特別清晰,請同學對比下視頻去解決吧,你的mybatis-config.xml文件去哪里了,并且這個變量是啥
2018-04-16
講師回答 / 翔仔
同學你可以仔細看看你的錯誤,serviceImpl報錯的,跟dao暫時無關,你首先確保你的service實現類里有@Service注解https://gitee.com/xiangze/demo/blob/master/src/main/java/com/imooc/demo/service/impl/AreaServiceImpl.javaservice配置正確https://gitee.com/xiangze/demo/blob/master/src/main/java/com/imooc/demo/...
2018-04-12
講師回答 / 翔仔
同學請你嚴格和視頻的比對下,你的錯誤非常明顯, 這里要提供的是Entity并且是resultType="com.imooc.demo.entity.Area"不是daohttps://gitee.com/xiangze/demo/blob/master/src/main/resources/mapper/AreaDao.xml 感覺你對這塊不是很了解,建議先去了解mybatis再說
2018-04-11
講師回答 / 翔仔
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.Reason: Failed to determine a suitable driver classAction:Consider the following:If you want an embedded database (H2, HSQL...
2018-04-06