springboot 多模塊下mapper分散的解決方法

springboot項目結構 由於mapper.xml分佈在不同的模塊中, mybatis.mapperLocations=classpath:mapper/*.xml 不能兩個模塊中mapper文件夾下的xml文件不能加載 這是因爲classpath只加載了一個mapper的改成 mybatis.mapperLocations=classpath*:mapper/*.xml 解決問題
相關文章
相關標籤/搜索