mybatis如何读取jar包内的xml文件

原始
mybatis:
mapper-locations: classpath:mapper/*.xml

修改为:
mybatis:
mapper-locations: classpath:mapper/.xml

增加一个*表示会搜索jar包下的路径

posted @ 2022-07-19 16:04  lin_0110  阅读(902)  评论(0)    收藏  举报