feat:http请求

dev
yuan 2024-10-10 20:27:24 +08:00
parent 41354f4a8f
commit b3a79bbade
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package com.muyu.common.rabbit.constants;
/**
* @Author
* @Packagecom.muyu.common.rabbit.contants
* @Projectcloud-server-8
* @nameVehicleGatewayContants
* @Date2024/10/10 9:02
*/
public class VehicleGatewayConstants {
/**
*
*/
public final static String VEHICLE_GETAWAY_EXCHANGE = "vehicle.getaway";
/**
* 线
*/
public final static String VEHICLE_GETAWAY_ROUTING_KEY = "vehicle.getaway.online";
}

View File

@ -0,0 +1,47 @@
# Tomcat
server:
port: 9717
# nacos线上地址
nacos:
addr: 159.75.188.178:8848
user-name: nacos
password: nacos
namespace: psr
# Spring
spring:
application:
# 应用名称
name: cloud-car-gateway
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
config:
# 服务注册地址
server-addr: ${nacos.addr}
# nacos用户名
username: ${nacos.user-name}
# nacos密码
password: ${nacos.password}
# 命名空间
namespace: ${nacos.namespace}
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
# 系统共享配置
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
# 系统环境Config共享配置
- application-config-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}