Merge branch 'test' of http://8.163.30.128:10082/java-project/baiyue-firstleg into test
This commit is contained in:
@@ -2,6 +2,8 @@ server:
|
|||||||
port: ${AUDIT_PORT:9700}
|
port: ${AUDIT_PORT:9700}
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: audit-service
|
name: audit-service
|
||||||
config:
|
config:
|
||||||
@@ -20,12 +22,5 @@ spring:
|
|||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
|
|
||||||
# 本地 IDEA 启动默认连接本机 MySQL;生产环境请通过 AUDIT_DB_* 环境变量覆盖。
|
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${AUDIT_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_audit?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${AUDIT_DB_USERNAME:root}
|
|
||||||
password: ${AUDIT_DB_PASSWORD:123456}
|
|
||||||
|
|
||||||
baiyue.audit.enabled: false
|
baiyue.audit.enabled: false
|
||||||
management.endpoints.web.exposure.include: health,info,prometheus
|
management.endpoints.web.exposure.include: health,info,prometheus
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${AUTH_PORT:9100}
|
port: ${AUTH_PORT:9100}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: auth-service
|
name: auth-service
|
||||||
config:
|
config:
|
||||||
@@ -25,12 +27,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${AUTH_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_auth?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${AUTH_DB_USERNAME:root}
|
|
||||||
password: ${AUTH_DB_PASSWORD:123456}
|
|
||||||
|
|
||||||
baiyue.security:
|
baiyue.security:
|
||||||
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
||||||
internal-service-token: ${INTERNAL_SERVICE_TOKEN:change-me-to-an-internal-token-at-least-32-bytes-long}
|
internal-service-token: ${INTERNAL_SERVICE_TOKEN:change-me-to-an-internal-token-at-least-32-bytes-long}
|
||||||
|
|||||||
@@ -2,17 +2,14 @@ server:
|
|||||||
port: ${EVENT_BRIDGE_PORT:9300}
|
port: ${EVENT_BRIDGE_PORT:9300}
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: event-bridge-service
|
name: event-bridge-service
|
||||||
config:
|
config:
|
||||||
import:
|
import:
|
||||||
- optional:nacos:baiyue-common.yml?group=BAIYUE&refreshEnabled=true
|
- optional:nacos:baiyue-common.yml?group=BAIYUE&refreshEnabled=true
|
||||||
- optional:nacos:${spring.application.name}.yml?group=BAIYUE&refreshEnabled=true
|
- optional:nacos:${spring.application.name}.yml?group=BAIYUE&refreshEnabled=true
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${EVENT_BRIDGE_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_event_bridge?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true}
|
|
||||||
username: ${EVENT_BRIDGE_DB_USERNAME:root}
|
|
||||||
password: ${EVENT_BRIDGE_DB_PASSWORD:123456}
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
|
server-addr: ${NACOS_SERVER_ADDR:127.0.0.1:8848}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${FILE_PORT:9206}
|
port: ${FILE_PORT:9206}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: file-service
|
name: file-service
|
||||||
config:
|
config:
|
||||||
@@ -18,11 +20,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${FILE_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_file?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${FILE_DB_USERNAME:root}
|
|
||||||
password: ${FILE_DB_PASSWORD:123456}
|
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
max-file-size: 5MB
|
max-file-size: 5MB
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${FIRSTLEG_PORT:9202}
|
port: ${FIRSTLEG_PORT:9202}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: firstleg-service
|
name: firstleg-service
|
||||||
config:
|
config:
|
||||||
@@ -18,11 +20,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${FIRSTLEG_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_firstleg?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${FIRSTLEG_DB_USERNAME:root}
|
|
||||||
password: ${FIRSTLEG_DB_PASSWORD:123456}
|
|
||||||
baiyue:
|
baiyue:
|
||||||
security:
|
security:
|
||||||
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
||||||
|
|||||||
@@ -2,94 +2,9 @@ spring:
|
|||||||
config:
|
config:
|
||||||
activate:
|
activate:
|
||||||
on-profile: cn
|
on-profile: cn
|
||||||
cloud:
|
|
||||||
gateway:
|
|
||||||
discovery:
|
|
||||||
locator:
|
|
||||||
enabled: false
|
|
||||||
routes:
|
|
||||||
- id: auth-service
|
|
||||||
uri: lb://auth-service
|
|
||||||
predicates: [Path=/api/auth/**]
|
|
||||||
- id: iam-service
|
|
||||||
uri: lb://iam-service
|
|
||||||
predicates: ["Path=/api/iam/**,/api/platform/v1/iam/**,/api/merchant/v1/iam/**"]
|
|
||||||
- id: order-service
|
|
||||||
uri: lb://order-service
|
|
||||||
predicates: ["Path=/api/merchant/v1/orders/**,/api/platform/v1/orders/**"]
|
|
||||||
- id: firstleg-service
|
|
||||||
uri: lb://firstleg-service
|
|
||||||
predicates: ["Path=/api/merchant/v1/first-leg/**,/api/platform/v1/first-leg/**"]
|
|
||||||
- id: warehouse-service
|
|
||||||
uri: lb://warehouse-service
|
|
||||||
predicates: ["Path=/api/merchant/v1/warehouses/**,/api/merchant/v1/partners/**,/api/platform/v1/warehouses/**,/api/platform/v1/warehouse-admin/**"]
|
|
||||||
- id: file-service
|
|
||||||
uri: lb://file-service
|
|
||||||
predicates: ["Path=/api/merchant/v1/files/**,/api/platform/v1/files/**"]
|
|
||||||
- id: print-service
|
|
||||||
uri: lb://print-service
|
|
||||||
predicates: ["Path=/api/merchant/v1/print/**,/api/platform/v1/print/**"]
|
|
||||||
- id: auth-openapi
|
|
||||||
uri: lb://auth-service
|
|
||||||
predicates: [Path=/auth-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: iam-openapi
|
|
||||||
uri: lb://iam-service
|
|
||||||
predicates: [Path=/iam-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: order-openapi
|
|
||||||
uri: lb://order-service
|
|
||||||
predicates: [Path=/order-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: firstleg-openapi
|
|
||||||
uri: lb://firstleg-service
|
|
||||||
predicates: [Path=/firstleg-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: warehouse-openapi
|
|
||||||
uri: lb://warehouse-service
|
|
||||||
predicates: [Path=/warehouse-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: file-openapi
|
|
||||||
uri: lb://file-service
|
|
||||||
predicates: [Path=/file-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: print-openapi
|
|
||||||
uri: lb://print-service
|
|
||||||
predicates: [Path=/print-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: audit-openapi
|
|
||||||
uri: lb://audit-service
|
|
||||||
predicates: [Path=/audit-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: integration-openapi
|
|
||||||
uri: lb://integration-service
|
|
||||||
predicates: [Path=/integration-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
- id: event-bridge-openapi
|
|
||||||
uri: lb://event-bridge-service
|
|
||||||
predicates: [Path=/event-bridge-service/v3/api-docs/**]
|
|
||||||
filters: [StripPrefix=1]
|
|
||||||
|
|
||||||
baiyue:
|
baiyue:
|
||||||
deployment:
|
deployment:
|
||||||
region-code: ${REGION_CODE:CN}
|
region-code: ${REGION_CODE:CN}
|
||||||
cell: ${DEPLOYMENT_CELL:prod-cn}
|
cell: ${DEPLOYMENT_CELL:cn}
|
||||||
data-residency: ${DATA_RESIDENCY:CN}
|
data-residency: ${DATA_RESIDENCY:CN}
|
||||||
|
|
||||||
springdoc:
|
|
||||||
swagger-ui:
|
|
||||||
urls:
|
|
||||||
- { name: auth-platform, url: /auth-service/v3/api-docs/platform }
|
|
||||||
- { name: iam-platform, url: /iam-service/v3/api-docs/platform }
|
|
||||||
- { name: iam-merchant, url: /iam-service/v3/api-docs/merchant }
|
|
||||||
- { name: order-platform, url: /order-service/v3/api-docs/platform }
|
|
||||||
- { name: order-merchant, url: /order-service/v3/api-docs/merchant }
|
|
||||||
- { name: firstleg-platform, url: /firstleg-service/v3/api-docs/platform }
|
|
||||||
- { name: warehouse-merchant, url: /warehouse-service/v3/api-docs/merchant }
|
|
||||||
- { name: warehouse-platform, url: /warehouse-service/v3/api-docs/platform }
|
|
||||||
- { name: file-platform, url: /file-service/v3/api-docs/platform }
|
|
||||||
- { name: file-merchant, url: /file-service/v3/api-docs/merchant }
|
|
||||||
- { name: print-platform, url: /print-service/v3/api-docs/platform }
|
|
||||||
- { name: audit, url: /audit-service/v3/api-docs }
|
|
||||||
- { name: integration, url: /integration-service/v3/api-docs }
|
|
||||||
- { name: event-bridge, url: /event-bridge-service/v3/api-docs }
|
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ server:
|
|||||||
|
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
default: cn
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
|
group:
|
||||||
|
dev: cn
|
||||||
|
test: cn
|
||||||
application:
|
application:
|
||||||
name: gateway
|
name: gateway
|
||||||
autoconfigure:
|
autoconfigure:
|
||||||
@@ -35,7 +38,8 @@ spring:
|
|||||||
gateway:
|
gateway:
|
||||||
discovery:
|
discovery:
|
||||||
locator:
|
locator:
|
||||||
enabled: true
|
# 使用显式路由,避免将注册中心中的内部服务自动暴露到公网。
|
||||||
|
enabled: false
|
||||||
lower-case-service-id: true
|
lower-case-service-id: true
|
||||||
routes:
|
routes:
|
||||||
- id: auth-service
|
- id: auth-service
|
||||||
@@ -53,7 +57,7 @@ spring:
|
|||||||
- id: warehouse-service
|
- id: warehouse-service
|
||||||
uri: lb://warehouse-service
|
uri: lb://warehouse-service
|
||||||
predicates:
|
predicates:
|
||||||
- Path=/api/merchant/v1/warehouses/**,/api/platform/v1/warehouses/**,/api/platform/v1/warehouse-admin/**
|
- Path=/api/merchant/v1/warehouses/**,/api/merchant/v1/partners/**,/api/platform/v1/warehouses/**,/api/platform/v1/warehouse-admin/**,/api/platform/v1/partners/**,/api/platform/v1/express-companies/**
|
||||||
- id: file-service
|
- id: file-service
|
||||||
uri: lb://file-service
|
uri: lb://file-service
|
||||||
predicates:
|
predicates:
|
||||||
@@ -66,6 +70,67 @@ spring:
|
|||||||
uri: lb://firstleg-service
|
uri: lb://firstleg-service
|
||||||
predicates:
|
predicates:
|
||||||
- Path=/api/merchant/v1/first-leg/**,/api/platform/v1/first-leg/**
|
- Path=/api/merchant/v1/first-leg/**,/api/platform/v1/first-leg/**
|
||||||
|
# Swagger 文档聚合路由。
|
||||||
|
- id: auth-openapi
|
||||||
|
uri: lb://auth-service
|
||||||
|
predicates:
|
||||||
|
- Path=/auth-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: iam-openapi
|
||||||
|
uri: lb://iam-service
|
||||||
|
predicates:
|
||||||
|
- Path=/iam-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: order-openapi
|
||||||
|
uri: lb://order-service
|
||||||
|
predicates:
|
||||||
|
- Path=/order-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: firstleg-openapi
|
||||||
|
uri: lb://firstleg-service
|
||||||
|
predicates:
|
||||||
|
- Path=/firstleg-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: warehouse-openapi
|
||||||
|
uri: lb://warehouse-service
|
||||||
|
predicates:
|
||||||
|
- Path=/warehouse-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: file-openapi
|
||||||
|
uri: lb://file-service
|
||||||
|
predicates:
|
||||||
|
- Path=/file-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: print-openapi
|
||||||
|
uri: lb://print-service
|
||||||
|
predicates:
|
||||||
|
- Path=/print-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: audit-openapi
|
||||||
|
uri: lb://audit-service
|
||||||
|
predicates:
|
||||||
|
- Path=/audit-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: integration-openapi
|
||||||
|
uri: lb://integration-service
|
||||||
|
predicates:
|
||||||
|
- Path=/integration-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
|
- id: event-bridge-openapi
|
||||||
|
uri: lb://event-bridge-service
|
||||||
|
predicates:
|
||||||
|
- Path=/event-bridge-service/v3/api-docs/**
|
||||||
|
filters:
|
||||||
|
- StripPrefix=1
|
||||||
baiyue:
|
baiyue:
|
||||||
cors:
|
cors:
|
||||||
allowed-origins: ${CORS_ALLOWED_ORIGINS:http://localhost:5173,http://localhost:5174,http://127.0.0.1:5173,http://127.0.0.1:5174}
|
allowed-origins: ${CORS_ALLOWED_ORIGINS:http://localhost:5173,http://localhost:5174,http://127.0.0.1:5173,http://127.0.0.1:5174}
|
||||||
@@ -93,6 +158,9 @@ baiyue:
|
|||||||
- /file-service/v3/api-docs/**
|
- /file-service/v3/api-docs/**
|
||||||
- /print-service/v3/api-docs/**
|
- /print-service/v3/api-docs/**
|
||||||
- /firstleg-service/v3/api-docs/**
|
- /firstleg-service/v3/api-docs/**
|
||||||
|
- /audit-service/v3/api-docs/**
|
||||||
|
- /integration-service/v3/api-docs/**
|
||||||
|
- /event-bridge-service/v3/api-docs/**
|
||||||
|
|
||||||
management:
|
management:
|
||||||
endpoints:
|
endpoints:
|
||||||
@@ -131,3 +199,9 @@ springdoc:
|
|||||||
url: /print-service/v3/api-docs/platform
|
url: /print-service/v3/api-docs/platform
|
||||||
- name: firstleg-platform
|
- name: firstleg-platform
|
||||||
url: /firstleg-service/v3/api-docs/platform
|
url: /firstleg-service/v3/api-docs/platform
|
||||||
|
- name: audit
|
||||||
|
url: /audit-service/v3/api-docs
|
||||||
|
- name: integration
|
||||||
|
url: /integration-service/v3/api-docs
|
||||||
|
- name: event-bridge
|
||||||
|
url: /event-bridge-service/v3/api-docs
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${IAM_PORT:9201}
|
port: ${IAM_PORT:9201}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: iam-service
|
name: iam-service
|
||||||
config:
|
config:
|
||||||
@@ -19,11 +21,6 @@ spring:
|
|||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config:
|
config:
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${IAM_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_iam?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${IAM_DB_USERNAME:root}
|
|
||||||
password: ${IAM_DB_PASSWORD:123456}
|
|
||||||
baiyue:
|
baiyue:
|
||||||
clients:
|
clients:
|
||||||
auth:
|
auth:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ server:
|
|||||||
port: ${INTEGRATION_PORT:9210}
|
port: ${INTEGRATION_PORT:9210}
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: integration-service
|
name: integration-service
|
||||||
autoconfigure:
|
autoconfigure:
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${ORDER_PORT:9204}
|
port: ${ORDER_PORT:9204}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: order-service
|
name: order-service
|
||||||
config:
|
config:
|
||||||
@@ -18,11 +20,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${ORDER_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_order?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${ORDER_DB_USERNAME:root}
|
|
||||||
password: ${ORDER_DB_PASSWORD:123456}
|
|
||||||
management.endpoints.web.exposure.include: health,info,prometheus
|
management.endpoints.web.exposure.include: health,info,prometheus
|
||||||
|
|
||||||
baiyue:
|
baiyue:
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
<artifactId>baiyue-firstleg-platform</artifactId>
|
<artifactId>baiyue-firstleg-platform</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>百悦头程平台</name>
|
<name>柏悦头程平台</name>
|
||||||
<description>百悦物流国内头程业务微服务平台</description>
|
<description>柏悦悦物流国内头程业务微服务平台</description>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>platform-bom</module>
|
<module>platform-bom</module>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${PRINT_PORT:9207}
|
port: ${PRINT_PORT:9207}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: print-service
|
name: print-service
|
||||||
config:
|
config:
|
||||||
@@ -18,11 +20,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${PRINT_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_print?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${PRINT_DB_USERNAME:root}
|
|
||||||
password: ${PRINT_DB_PASSWORD:123456}
|
|
||||||
baiyue:
|
baiyue:
|
||||||
security:
|
security:
|
||||||
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
server:
|
server:
|
||||||
port: ${WAREHOUSE_PORT:9205}
|
port: ${WAREHOUSE_PORT:9205}
|
||||||
spring:
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: ${SPRING_PROFILES_ACTIVE:dev}
|
||||||
application:
|
application:
|
||||||
name: warehouse-service
|
name: warehouse-service
|
||||||
config:
|
config:
|
||||||
@@ -18,11 +20,6 @@ spring:
|
|||||||
group: ${NACOS_GROUP:BAIYUE}
|
group: ${NACOS_GROUP:BAIYUE}
|
||||||
namespace: ${NACOS_NAMESPACE:public}
|
namespace: ${NACOS_NAMESPACE:public}
|
||||||
config.namespace: ${NACOS_NAMESPACE:public}
|
config.namespace: ${NACOS_NAMESPACE:public}
|
||||||
datasource:
|
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
url: ${WAREHOUSE_DB_URL:jdbc:mysql://127.0.0.1:3306/baiyue_warehouse?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true}
|
|
||||||
username: ${WAREHOUSE_DB_USERNAME:root}
|
|
||||||
password: ${WAREHOUSE_DB_PASSWORD:123456}
|
|
||||||
baiyue:
|
baiyue:
|
||||||
security:
|
security:
|
||||||
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
jwt-secret: ${JWT_SECRET:change-me-to-at-least-32-bytes-long-before-start}
|
||||||
|
|||||||
Reference in New Issue
Block a user