张同佳 6 månader sedan
förälder
incheckning
6247b1a79f

+ 1 - 1
common/common-core/src/main/java/com/hdkj/lt/core/plugins/thread/MultiThreadExecuteService.java

@@ -27,7 +27,7 @@ import java.util.function.Function;
 @RequiredArgsConstructor
 public class MultiThreadExecuteService {
 
-    @Value("${lt.tools.thread-pool-size}")
+    @Value("${thread-pool.config.coreSize}")
     private Integer threadPoolSize;
 
     private ThreadPoolTaskExecutor executor;

+ 5 - 3
services/load-transfer-bf/src/main/java/com/hdkj/lt/bf/LoadTransferBFApplication.java

@@ -8,6 +8,7 @@ import org.springframework.cache.annotation.EnableCaching;
 import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
+import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
 
 /**
  * @Description:
@@ -15,11 +16,12 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
  * @Create: 2022/08/12 15:30
  * @Version: 1.0
  */
-@EnableFeignClients(basePackages = {SystemGlobalConstant.HUSSAR_ROOT_PACKAGE, SystemGlobalConstant.BIZMS_BASE_PACKAGE})
+@EnableFeignClients(basePackages = {SystemGlobalConstant.BIZMS_BASE_PACKAGE})
 @EnableDiscoveryClient
-@SpringBootApplication(scanBasePackages = {SystemGlobalConstant.HUSSAR_BASE_PACKAGE, SystemGlobalConstant.BIZMS_BASE_PACKAGE})
-@MapperScan(basePackages = {SystemGlobalConstant.HUSSAR_DAO_PACKAGE, SystemGlobalConstant.BIZMS_DAO_PACKAGE, SystemGlobalConstant.BIZMS_MAPPER_PACKAGE})
+@SpringBootApplication(scanBasePackages = {SystemGlobalConstant.BIZMS_BASE_PACKAGE})
+@MapperScan(basePackages = {SystemGlobalConstant.BIZMS_DAO_PACKAGE, SystemGlobalConstant.BIZMS_MAPPER_PACKAGE})
 @EnableCaching
+@EnableSwagger2WebMvc
 public class LoadTransferBFApplication {
 
     public static void main(String[] args) {

+ 4 - 6
services/load-transfer-bf/src/main/resources/config/local/bootstrap-local.yml

@@ -2,7 +2,7 @@
 NACOS_HOST: 27.54.100.176
 NACOS_PORT: 18848
 NACOS_PWD: FHZG@nacos2025
-NAMESPACE: 682eb787-7279-47d8-8516-79b521f96690
+NAMESPACE: 88b0baca-b7b1-496c-8ebd-bbfea7959c49
 
 server:
   servlet:
@@ -30,9 +30,7 @@ spring:
         username: ${spring.cloud.nacos.discovery.username}
         password: ${spring.cloud.nacos.discovery.password}
         namespace: ${spring.cloud.nacos.discovery.namespace}
-        file-extension: yml
+        file-extension: yaml
         shared-configs:
-          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} #公共配置
-          - datasource-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}  #数据源配置
-          - hussar-common-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} #轻骑兵框架配置
-          - load-transfer-custom-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} #负荷转供系统自定义配置
+          - application.${spring.cloud.nacos.config.file-extension} #公共配置
+          - common-core.${spring.cloud.nacos.config.file-extension}  #数据源配置