Commit 8709acca0d71ef0ecd43f7be283b87294e8029d0
1 parent
97fd06a1
feat: 修改配置,解决idea找不到xml文件问题
Showing
3 changed files
with
3 additions
and
3 deletions
trash-admin/src/main/resources/application-dev.yml
| @@ -31,7 +31,7 @@ spring: | @@ -31,7 +31,7 @@ spring: | ||
| 31 | druid: | 31 | druid: |
| 32 | # 主库数据源 | 32 | # 主库数据源 |
| 33 | master: | 33 | master: |
| 34 | - #url: jdbc:mysql://localhost:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true | 34 | +# url: jdbc:mysql://localhost:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true |
| 35 | url: jdbc:mysql://192.168.168.141:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true | 35 | url: jdbc:mysql://192.168.168.141:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true |
| 36 | username: root | 36 | username: root |
| 37 | password: root | 37 | password: root |
trash-admin/src/main/resources/application.yml
| @@ -63,7 +63,7 @@ mybatis-plus: | @@ -63,7 +63,7 @@ mybatis-plus: | ||
| 63 | # 搜索指定包别名 | 63 | # 搜索指定包别名 |
| 64 | typeAliasesPackage: com.trash.**.domain | 64 | typeAliasesPackage: com.trash.**.domain |
| 65 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 | 65 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 66 | - mapperLocations: classpath*:mapper/**/*Mapper.xml | 66 | + mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath*:mapper/*Mapper.xml |
| 67 | # 加载全局的配置文件 | 67 | # 加载全局的配置文件 |
| 68 | configLocation: classpath:mybatis/mybatis-config.xml | 68 | configLocation: classpath:mybatis/mybatis-config.xml |
| 69 | 69 |
trash-garbage/pom.xml
| @@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
| 50 | <build> | 50 | <build> |
| 51 | <resources> | 51 | <resources> |
| 52 | <resource> | 52 | <resource> |
| 53 | - <directory>src/main/java</directory> | 53 | + <directory>src/main/resources</directory> |
| 54 | <includes> | 54 | <includes> |
| 55 | <include>**/*.xml</include> | 55 | <include>**/*.xml</include> |
| 56 | </includes> | 56 | </includes> |