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 | 31 | druid: |
| 32 | 32 | # 主库数据源 |
| 33 | 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 | 35 | url: jdbc:mysql://192.168.168.141:3306/trash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true |
| 36 | 36 | username: root |
| 37 | 37 | password: root | ... | ... |
trash-admin/src/main/resources/application.yml
| ... | ... | @@ -63,7 +63,7 @@ mybatis-plus: |
| 63 | 63 | # 搜索指定包别名 |
| 64 | 64 | typeAliasesPackage: com.trash.**.domain |
| 65 | 65 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 66 | - mapperLocations: classpath*:mapper/**/*Mapper.xml | |
| 66 | + mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath*:mapper/*Mapper.xml | |
| 67 | 67 | # 加载全局的配置文件 |
| 68 | 68 | configLocation: classpath:mybatis/mybatis-config.xml |
| 69 | 69 | ... | ... |