springboot配置mybatis的mapper路徑

1、創建xml目錄 在src/main/resources/目錄下新建mybatis文件夾,將xxx.xml文件放入該文件夾內(也可以創建多級目錄) 2、在application.yml文件中配置: mybatis:   configuration:     mapUnderscoreToCamelCase: true   mapperLocations: mybatis/*Mapper.xml
相關文章
相關標籤/搜索