讲师回答 / 翔仔
同学好,感谢对本门课程的肯定:)理论上是可以的,但是小程序这边微信这里做了限制,需要经过它的审核才可以(具体可以阅读小程序官方文档),还是建议同学上线的话用web. 不需要用idea导出后台服务,用 mvn package命令来导出,然后放上服务器 java -jar 去执行,具体我的实战课里也有但是是Web非小程序的:)
2018-04-30
讲师回答 / 翔仔
class path resource [{mybatis_config_file}] cannot be opened because it does not exist 报得特别清晰,请同学对比下视频去解决吧,你的mybatis-config.xml文件去哪里了,并且这个变量是啥
2018-04-16
已采纳回答 / 斯沃丶
大配置文件在resouces目录下创建 创建xml文件mybatis-config.xml和小配置文件的模板都可以在mybatis的帮助文档里找到http://www.mybatis.org/mybatis-3/或者直接复制下面的内容mybatis-config.xml<...code...>小配置<...code...>
2018-04-13
讲师回答 / 翔仔
同学你可以仔细看看你的错误,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
已采纳回答 / 慕田峪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