Skip to content

Commit cb4ebea

Browse files
committed
添加默认扫描Mapper xml位置
1 parent 68392ef commit cb4ebea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/enhance/ApiBootMyBatisEnhanceProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class ApiBootMyBatisEnhanceProperties {
5757
/**
5858
* Locations of MyBatis mapper files.
5959
*/
60-
private String[] mapperLocations;
60+
private String[] mapperLocations = {"classpath:mappers/*.xml"};
6161

6262
/**
6363
* Packages to search type aliases. (Package delimiters are ",; \t\n")

0 commit comments

Comments
 (0)