Commit 9860fc86 authored by 李欣峰's avatar 李欣峰

1.修改配置

parent 104047eb
Pipeline #35534 passed with stages
in 1 minute and 48 seconds
server:
port: 10008
spring:
application:
name: @artifactId@
api-service-address:
path: /v1/dataService/**
uri: http://localhost:6725
url: http://localhost:6725/v1/dataService/api/getApiLimit
logging:
file:
path: gatewaylogs
server:
port: 10008
spring:
application:
name: api-service-gateway
cloud:
gateway:
globalcors:
cors-configurations:
'[/**]':
# 允许跨域的源(网站域名/ip),设置*为全部
# 允许跨域请求里的head字段,设置*为全部
# 允许跨域的method, 默认为GET和OPTIONS,设置*为全部
allow-credentials: true
allowed-origins: "*"
allowed-headers: "*"
allowed-methods:
- OPTIONS
- GET
- POST
- DELETE
- PUT
- PATCH
max-age: 3600
api-service-address:
path: /v1/apiService/**
uri: http://192.168.70.46:6725
url: http://192.168.70.46:6725/v1/dataService/api/getApiLimit
cloud:
gateway:
default-filters:
- DedupeResponseHeader=Access-Control-Allow-Origin, RETAIN_UNIQUE
  • SonarQube analysis reported 5 issues

    • 1 major
    • 🔽 4 minor

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. Add a private constructor to hide the implicit public one. 📘
    2. 🔽 Remove this unused import 'org.springframework.context.ApplicationContext'. 📘
    3. 🔽 Remove this unused import 'java.util.Map'. 📘
    4. 🔽 Remove this unused import 'javax.validation.Valid'. 📘
    5. 🔽 Make this member "protected". 📘
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment