mybatis如何讀取jar包內的xml文件

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

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

增加一個*表示會搜索jar包下的路徑

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