Files
SOP/sop-gateway/src/main/resources/application-dev.yml
2019-06-06 15:44:47 +08:00

53 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8081
zuul:
# 入口地址,不用改,默认是/zuul
servlet-path: /api
# 禁用默认的过滤器,不能删,不用改
FormBodyWrapperFilter:
pre:
disable: true
Servlet30WrapperFilter:
pre:
disable: true
# 不用改,如果要改,建议全局替换修改
secret: MZZOUSTua6LzApIWXCwEgbBmxSzpzC
# 注册中心,根据实际情况修改
eureka:
serverAddr: localhost:1111
client:
serviceUrl:
defaultZone: http://${eureka.serverAddr}/eureka/
spring:
application:
name: api-gateway
# zookeeper根据实际情况修改
cloud:
zookeeper:
connect-string: localhost:2181
# Spring Cloud Gateway配置如果用了zuul这段配置没有效果不用改
gateway:
discovery:
locator:
lower-case-service-id: true
enabled: true
# 数据源,根据实际情况修改
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/sop?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
username: root
password: root
# 上传文件配置,根据实际情况修改
servlet:
multipart:
enabled: true
max-file-size: 20MB # 上传文件最大20MB默认1MB
max-request-size: 20MB