nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML.

写完Mapper后,AJ项目运行报错

nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML.

百度翻译:嵌套的异常是org.apache.ibatis.builder.builderException:分析映射器XML时出错。

解决方法:参考https://blog.csdn.net/weixin_39881983/article/details/88324706

尝试解决:

  1:说是mybatis的MapperScan和通用mapper的MapperScan,查看了自己项目的注解,发现application上有@MapperScan,并且dao接口上也有@Mapper,去掉dao接口上的@Mapper;【没解决】

  2:查看自己的mapper.xml文件

    去掉resultMap的JdbcType属性

    cloum中的字段大写

不报错了

自己写的东西要负责的啊。

nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML.

上一篇:laravel新项目报错 No application encryption key has been specified.


下一篇:A query was run and no Result Maps were found for the Mapped Statement