kidgrow-commons/kidgrow-common-spring-boot-starter/pom.xml
@@ -132,10 +132,10 @@ <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> </dependency> <!-- 消息总线rabbitMQ --> <!-- <dependency>--> <!-- <groupId>org.springframework.cloud</groupId>--> <!-- <artifactId>spring-cloud-starter-bus-amqp</artifactId>--> <!-- </dependency>--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bus-amqp</artifactId> </dependency> </dependencies> <build> kidgrow-springcloud/kidgrow-springcloud-zuul/src/main/java/com/kidgrow/ZuulApplication.java
@@ -3,9 +3,7 @@ import com.didispace.swagger.butler.EnableSwaggerButler; import com.kidgrow.jwt.client.EnableAuthClient; import com.kidgrow.ribbon.annotation.EnableFeignInterceptor; import com.kidgrow.zuul.service.AccessLogService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; @@ -32,8 +30,8 @@ SpringApplication.run(ZuulApplication.class,args); } @Autowired private AccessLogService accessLogService; // @Autowired // private AccessLogService accessLogService; // @Bean // public ZuulFilter zuulErrorFilter() { kidgrow-springcloud/kidgrow-springcloud-zuul/src/main/java/com/kidgrow/zuul/service/AccessLogService.java
@@ -5,8 +5,7 @@ import com.google.common.collect.Maps; import com.kidgrow.common.utils.WebUtils; import lombok.extern.slf4j.Slf4j; //import org.springframework.amqp.core.AmqpTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.netflix.zuul.filters.support.FilterConstants; import org.springframework.http.HttpHeaders; @@ -21,6 +20,8 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; //import org.springframework.amqp.core.AmqpTemplate; /** * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> * @@ -34,8 +35,8 @@ public class AccessLogService { private ExecutorService executorService; @Autowired // private AmqpTemplate amqpTemplate; // @Autowired private AmqpTemplate amqpTemplate; @Value("${spring.application.name}") private String defaultServiceId; pom.xml
@@ -156,11 +156,7 @@ <version>${javax.activatio.version}</version> </dependency> <!-- jaxb模块引用 - end --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> </dependencies> <dependencyManagement>