123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- package com.kmall.admin.config.mq;
- /**
- * 自定义的rabbitmq属性
- * @author lhm
- * @version 1.0
- * 2021-09-08 17:36
- */
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.context.annotation.PropertySource;
- import org.springframework.stereotype.Component;
- /**
- * 队列配置
- * req_20210826_001
- * @author lhm
- * @version 1.0
- * 2021-08-26 17:08
- */
- @PropertySource(value = {"classpath:conf/mq.properties"})
- @Component
- public class CustomRabbitMQProperties {
- /**
- * 主要配置
- */
- @Value("${mq.username}")
- private String username;
- @Value("${mq.password}")
- private String password;
- @Value("${mq.host}")
- private String host;
- @Value("${mq.port}")
- private int port;
- @Value("${mq.virtual.host}")
- private String virtualHost;
- @Value("${mq.channel.cache.size}")
- private int channelCacheSize;
- /**
- * 是否开启
- */
- @Value("${mq.open}")
- private Boolean open;
- /**
- * 队列配置
- */
- @Value("${k.normal.oms.order.to.handle.customs.clearance}")
- private String k_normal_oms_order_to_handle_customs_clearance;
- @Value("${q.normal.oms.order.to.handle.customs.clearance}")
- private String q_normal_oms_order_to_handle_customs_clearance;
- @Value("${e.normal.oms.order.to.handle.customs.clearance}")
- private String e_normal_oms_order_to_handle_customs_clearance;
- public String getUsername() {
- return username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getHost() {
- return host;
- }
- public void setHost(String host) {
- this.host = host;
- }
- public int getPort() {
- return port;
- }
- public void setPort(int port) {
- this.port = port;
- }
- public String getVirtualHost() {
- return virtualHost;
- }
- public void setVirtualHost(String virtualHost) {
- this.virtualHost = virtualHost;
- }
- public int getChannelCacheSize() {
- return channelCacheSize;
- }
- public void setChannelCacheSize(int channelCacheSize) {
- this.channelCacheSize = channelCacheSize;
- }
- public Boolean getOpen() {
- return open;
- }
- public void setOpen(Boolean open) {
- this.open = open;
- }
- public String getK_normal_oms_order_to_handle_customs_clearance() {
- return k_normal_oms_order_to_handle_customs_clearance;
- }
- public void setK_normal_oms_order_to_handle_customs_clearance(String k_normal_oms_order_to_handle_customs_clearance) {
- this.k_normal_oms_order_to_handle_customs_clearance = k_normal_oms_order_to_handle_customs_clearance;
- }
- public String getQ_normal_oms_order_to_handle_customs_clearance() {
- return q_normal_oms_order_to_handle_customs_clearance;
- }
- public void setQ_normal_oms_order_to_handle_customs_clearance(String q_normal_oms_order_to_handle_customs_clearance) {
- this.q_normal_oms_order_to_handle_customs_clearance = q_normal_oms_order_to_handle_customs_clearance;
- }
- public String getE_normal_oms_order_to_handle_customs_clearance() {
- return e_normal_oms_order_to_handle_customs_clearance;
- }
- public void setE_normal_oms_order_to_handle_customs_clearance(String e_normal_oms_order_to_handle_customs_clearance) {
- this.e_normal_oms_order_to_handle_customs_clearance = e_normal_oms_order_to_handle_customs_clearance;
- }
- }
|