doum
2025-09-11 7298d5354963a88643a543b51b90192dc9fc934c
server/system_gateway/src/main/resources/bootstrap.yml
@@ -1,43 +1,11 @@
spring:
  profiles:
    active: dev
  application:
    name: system_gateway
  cloud:
    nacos:
      server-addr: http://175.27.187.84:8848 #配置Nacos地址
      username: nacos
      password: nacos
      discovery:
        server-addr: http://175.27.187.84:8848 #配置Nacos地址
        namespace: dmvisit
        username: nacos
        password: nacos
    gateway:
      discovery:
        locator:
          #开启从注册中心动态创建路由的功能,利用微服务名进行路由
          enabled: true
          #开启小写验证,默认feign根据服务名查找都是用的全大写
          lower-case-service-id: true
      routes:
        - id: meetingAdmin
          uri: lb://meetingAdmin
#          uri: http://localhost:10013
          # 断言,路径相匹配的进行路由
          predicates:
            - Path=/meetingAdmin/**
          filters:
            - StripPrefix=1
        - id: visitsAdmin
          uri: lb://visitsAdmin
#          uri: http://localhost:10028
          # 断言,路径相匹配的进行路由
          predicates:
            - Path=/visitsAdmin/**
          filters:
            - StripPrefix=1
management:
  endpoints:
    web:
      exposure:
        include: "*"
  # 安全配置
  security:
    # 验签公钥地址
    oauth2:
      authorizationserver:
        token-uri: https://