IDEA 2018 创建springboot工程后,如果你打开一个.sql文件,或者一个mybatis的mapper.xml文件,会提示: No data source are configured to run this SQL and provide advanced code assistance. 不要觉得这个很烦,我个人觉得这个工具提供了这么强大的能提高你编码效率的功能给你,不用白不用~ 到底哪里提升效率呢?看下面几个操作对比: 没有配置DataSource前的操作没有智能输入提醒,手
错误在于一个写的get(Long id)的查询方法, 而在Mapper.xml中我定义了这个接收的参数的类型是int类型, 结果就报了如下的错误 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='id', mode=I
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoSupport': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name