Commit a8cc26962e36376a2d21ba1b541dcf9b965d03d2
1 parent
519729af
清理公共配置代码
Showing
3 changed files
with
2 additions
and
8 deletions
itcast-auth/itcast-auth-server/src/main/java/com/itheima/authority/config/AuthorityWebConfiguration.java
| @@ -3,9 +3,7 @@ package com.itheima.authority.config; | @@ -3,9 +3,7 @@ package com.itheima.authority.config; | ||
| 3 | import com.itheima.tools.common.config.BaseConfig; | 3 | import com.itheima.tools.common.config.BaseConfig; |
| 4 | import org.springframework.context.annotation.Configuration; | 4 | import org.springframework.context.annotation.Configuration; |
| 5 | 5 | ||
| 6 | -/** | ||
| 7 | - * | ||
| 8 | - */ | 6 | + |
| 9 | @Configuration | 7 | @Configuration |
| 10 | public class AuthorityWebConfiguration extends BaseConfig { | 8 | public class AuthorityWebConfiguration extends BaseConfig { |
| 11 | 9 |
itcast-auth/itcast-auth-server/src/main/java/com/itheima/authority/config/PreTenantHandler.java
| @@ -15,10 +15,6 @@ public class PreTenantHandler implements TenantHandler { | @@ -15,10 +15,6 @@ public class PreTenantHandler implements TenantHandler { | ||
| 15 | 15 | ||
| 16 | private static final String SYSTEM_APPLICATION_ID = "application_id"; | 16 | private static final String SYSTEM_APPLICATION_ID = "application_id"; |
| 17 | 17 | ||
| 18 | - public PreTenantHandler() { | ||
| 19 | - log.info("PreTenantHandler init"); | ||
| 20 | - } | ||
| 21 | - | ||
| 22 | /** | 18 | /** |
| 23 | * 不需要需要过滤的表 | 19 | * 不需要需要过滤的表 |
| 24 | */ | 20 | */ |
itcast-auth/itcast-auth-server/src/main/java/com/itheima/authority/config/SysLogConfiguration.java
| @@ -9,12 +9,12 @@ import org.springframework.scheduling.annotation.EnableAsync; | @@ -9,12 +9,12 @@ import org.springframework.scheduling.annotation.EnableAsync; | ||
| 9 | 9 | ||
| 10 | /** | 10 | /** |
| 11 | * 日志自动配置 | 11 | * 日志自动配置 |
| 12 | - * | ||
| 13 | */ | 12 | */ |
| 14 | @EnableAsync | 13 | @EnableAsync |
| 15 | @Configuration | 14 | @Configuration |
| 16 | public class SysLogConfiguration { | 15 | public class SysLogConfiguration { |
| 17 | 16 | ||
| 17 | + // 日志存储的数据库 | ||
| 18 | @Value("${itcast.mysql.database:itcast_auth}") | 18 | @Value("${itcast.mysql.database:itcast_auth}") |
| 19 | private String database; | 19 | private String database; |
| 20 | 20 |