提交 61eb7143 编写于 作者: 老丢丢's avatar 老丢丢

提交

上级 036f7bb9
...@@ -41,10 +41,10 @@ public class FanoutRabbitMQConfig { ...@@ -41,10 +41,10 @@ public class FanoutRabbitMQConfig {
} }
@Bean @Bean
public Binding bindingFanoutBExchange(){ public Binding bindingFanoutBExchange(){
return BindingBuilder.bind(fanoutAQueue()).to(fanoutExchange()); return BindingBuilder.bind(fanoutBQueue()).to(fanoutExchange());
} }
@Bean @Bean
public Binding bindingFanoutCExchange(){ public Binding bindingFanoutCExchange(){
return BindingBuilder.bind(fanoutAQueue()).to(fanoutExchange()); return BindingBuilder.bind(fanoutCQueue()).to(fanoutExchange());
} }
} }
...@@ -12,7 +12,7 @@ import org.springframework.stereotype.Component; ...@@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
* @author wolf * @author wolf
* @date 20-11-17 * @date 20-11-17
*/ */
//@Component @Component
public class TopicReceiveListener { public class TopicReceiveListener {
/** /**
......
...@@ -21,11 +21,20 @@ ...@@ -21,11 +21,20 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!--<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>-->
<dependency> <dependency>
<groupId>com.github.xiaoymin</groupId> <groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId> <artifactId>knife4j-spring-boot-starter</artifactId>
<!--在引用时请在maven中央仓库搜索2.X最新版本号-->
<version>2.0.8</version> <version>2.0.8</version>
</dependency> </dependency>
<dependency> <dependency>
......
package com.pannk.config; package com.pannk.config;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.ApiInfoBuilder;
...@@ -14,6 +15,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc; ...@@ -14,6 +15,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
/** /**
* Created by wolf on 20-11-30. * Created by wolf on 20-11-30.
*/ */
@EnableKnife4j
@EnableSwagger2WebMvc @EnableSwagger2WebMvc
@Configuration @Configuration
public class Swagger2Config { public class Swagger2Config {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册