2020 年文章归档
共 8 篇文章
Rabbit Mq Topic 交换机
1.TopicRabbitConfig package com.soft.rabbit.server.config; import org.springframework.amqp.core.Binding; import org.springframework.amqp.core.BindingBuilder; import org.springframework.amqp.core.Queue; import org.springframework.amqp.core.TopicExchange; import org.springframework.context.annotation…
2020-06-09 18:14 · Rabbit Mq
Rabbit MQ Direct 交换机
[size=large]1.完整的pom.xml 4.0.0 com.soft.rabbit.server soft-rabbit-server 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE 1.8 UTF-8 UTF-8 Finchley.M9 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator org.springfram…
2020-06-09 18:12 · Rabbit Mq · Rabbit MQ
Spring Cloud Gateway
[size=large]1.完整的pom.xml 4.0.0 com.soft.gateway soft-gateway 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE 1.8 UTF-8 UTF-8 Finchley.M9 org.springframework.cloud spring-cloud-starter-gateway org.springframework spring-webmvc org.springframework.cloud spring-cloud-s…
2020-06-04 14:41 · Spring Cloud
Spring Cloud 配置中心
[size=large]1.完整的pom.xml 4.0.0 com.soft.registerServer soft-configServer 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE 1.8 UTF-8 UTF-8 Finchley.M9 org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-config-server org.springframe…
2020-06-01 11:02 · Spring Cloud
Spring Cloud 微服务
[size=large]1.完整的pom.xml 4.0.0 com.soft.customer soft-customer 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE 1.8 UTF-8 UTF-8 Finchley.M9 org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-starter-config org.springframework.boot…
2020-05-30 19:05 · Spring Cloud
Spring Cloud 注册中心
[size=large]1.完整的Pom文件 4.0.0 com.soft.registerServer soft-registerServer 0.0.1-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.0.RELEASE 1.8 UTF-8 UTF-8 Finchley.M9 org.springframework.boot spring-boot-starter org.springframework.cloud spring-cloud-starter-netflix-eureka-server org…
2020-05-29 11:41 · Spring Cloud
多个注册中心
第一台注册中心的配置,本机ip 10.10.10.11 server: port: 1001 connection-timeout: 10000 spring: application: #应用名称服务名 name: IBMP-REGIST-CENTER eureka: server: # 关闭自我保护模式(缺省为打开) enable-self-preservation: false # 清理间隔(毫秒,默认 60秒) # eviction-interval-timer-in-ms: 10000 instance: hostname: ${spring.cloud.client.ipAddr…
2020-05-11 10:04 · Spring Cloud
Future和Callable的使用
ExecutorService中的submit(Callable)方法可以执行Callable任务,并且使用Future接口中的get()方法获取返回值。示例如下: public class HomeRegNumCallable implements Callable<Map<String, Object>>{ private String newDate; private String oldTime; private HomePageMapper homePageMapper; public HomeRegNumCallable(String newDate,String oldTime…
2020-05-04 22:16 · 多线程 · Callable · future