我正在开发一个带有DB存储库的java项目,遇到了一个愚蠢的问题。我使用的是MySQL和Mybatis3.4.5。位于resources/mybatis文件夹中的配置文件(mybatis-config.xml)。public class MySQLAttrRepo implements AttrRepo {
public static final String CONFIGURATION_XML = "mybatis/mybatis-confi
当我尝试使用SqlProvider时,我得到了一个异常的org.apache.ibatis.reflection.ReflectionException(显示为"There is no getter for property named 'providerTakesParameterObject' in 'class org.apache.ibatis.builder.annotation.ProviderSqlSource'")。我在谷歌上搜索了一下,似乎一个SqlProvider不能接受多个参数。以下是演示代码:
MyTableMapper.