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

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

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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章