最赞回答 / 环转码
你可以看看你的实体类属性命名是否是驼峰式命名,或者你的命名转换为数据库字段那个模式是否一致。我的不是驼峰式命名我的是和数据库字段一样的命名,然后把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