报错-Bean-must-be-of-org-apache-ibatis-plugin-Interceptor-type

在5.x版本,mybatis-config.xml中配置pageHelper的格式为:

1
2
3
4
5
6
7
<plugins>
        <plugin interceptor="com.github.pagehelper.PageInterceptor">
            <!-- config params as the following -->
            <!--分页参数合理化-->
            <property name="reasonable" value="true"/>
        </plugin>
    </plugins>

在4.x版本中,mybatis-config.xml中的配置为:

1
2
3
4
5
6
7
<plugins>
        <plugin interceptor="com.github.pagehelper.PageHelper">
            <!-- config params as the following -->
            <property name="reasonable " value="true"/>
            <!--<property name="dialect" value="mysql" />-->
        </plugin>
    </plugins>

在5.0的版本下用了4.x的配置文件,所以报错


Cannot Cause: java.lang.IllegalStateException: Cannot define both nestedQueryId and nestedResultMapId in property dept

1
2
3
4
<association property="dept" 
             resultMap="cn.qf.oa.dao.mapper.DeptMap" 
             select="cn.qf.oa.dao.mapper.DeptDao.getDeptById"       
             column="deptid" javaType="Dept"/>

把resultMap删掉

解决com.github.pagehelper.PageInterceptor插件出现空指针问题

在mybatis-config和application两个配置文件中同时配置了pagehelper,删掉一个

A query was run and no Result Maps were found for the Mapped Statement

使用mybatis进行查询时,没有给定resultType值出现的错误。resultType是查询对象的类型。

方法修改 删除 后还是报同样的错误

把tomcat 的 deployment 中的war explored删掉,换成war

mlgb搞了一天

Element ‘dependency’ cannot have character [children]

问题:Element ‘dependency’ cannot have character [children],

原因:眼瞎

解决方法:看看你的特殊字符多写、少些、写错。

从别处复制 容易出现这个错误,好多情况下从网页上复制都会有多余的空格

js闭包

函数在调用过程中产生的一块临时的内存空间,外部访问不到,不会被全局污染.