mybatis: Using mapper interfaces with XML config for global parameters

后端 未结 3 1246
野趣味
野趣味 2021-02-04 11:05

I like the XML notation for specifying global parameters such as connection strings. I also like Mapper annotations. When I try to combine the two, I get this exception.

3条回答
  •  庸人自扰
    2021-02-04 11:35

    I had the same issue and was because the name space in mybatis mapper file and the package of the mapper interface were not matching.

提交回复
热议问题