在5.x版本,mybatis-config.xml中配置pageHelper的格式为:
|
|
在4.x版本中,mybatis-config.xml中的配置为:
|
|
在5.0的版本下用了4.x的配置文件,所以报错
Cannot Cause: java.lang.IllegalStateException: Cannot define both nestedQueryId and nestedResultMapId in property 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闭包
函数在调用过程中产生的一块临时的内存空间,外部访问不到,不会被全局污染.