4
0
Эх сурвалжийг харах

作者:张哲
时间:2023/01/12
类型:优化
描述:主程序清除多余包

ZizgZh 2 жил өмнө
parent
commit
16d8b1f9a3

+ 0 - 17
src/main/java/com/redxun/JpaasKnowledgeApp.java

@@ -1,14 +1,10 @@
 package com.redxun;
 
-import com.alibaba.druid.pool.DruidDataSource;
 import com.redxun.common.ribbon.annotation.EnableFeignInterceptor;
-import com.redxun.knowledge.common.MessageService;
 import com.redxun.log.mq.LogOutput;
-import com.redxun.log.properties.LogDbProperties;
 import com.redxun.msgsend.mq.MsgOutput;
 import com.redxun.web.mq.ErrLogOutput;
 import io.micrometer.core.instrument.MeterRegistry;
-import org.apache.xmlbeans.impl.values.JavaBase64Holder;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCustomizer;
@@ -17,10 +13,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 import org.springframework.cloud.stream.annotation.EnableBinding;
 import org.springframework.context.annotation.Bean;
-import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.scheduling.annotation.EnableAsync;
-import org.springframework.scheduling.annotation.EnableScheduling;
-import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
 /**
  *
@@ -52,14 +45,4 @@ public class JpaasKnowledgeApp {
             @Value("${spring.application.name}") String applicationName) {
         return (registry) -> registry.config().commonTags("application", applicationName);
     }
-
-    @Bean
-    public LogDbProperties logDbProperties(){
-        return new LogDbProperties();
-    }
-
-    @Bean
-    public JdbcTemplate jdbcTemplate(){
-        return new JdbcTemplate(new DruidDataSource());
-    }
 }