config
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -29,6 +29,12 @@
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-config</artifactId>
|
||||
</dependency>
|
||||
-->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
|
||||
@@ -10,6 +10,6 @@ import org.springframework.web.reactive.config.WebFluxConfigurer;
|
||||
public class WebFluxWebConfig implements WebFluxConfigurer {
|
||||
@Override
|
||||
public void configureHttpMessageCodecs(ServerCodecConfigurer configurer) {
|
||||
configurer.defaultCodecs().maxInMemorySize(2 * 1024 * 1024);
|
||||
configurer.defaultCodecs().maxInMemorySize(10 * 1024 * 1024);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,12 @@ server:
|
||||
address: 127.0.0.1
|
||||
port: 10000
|
||||
spring:
|
||||
application:
|
||||
name: flagnote-gateway
|
||||
profiles:
|
||||
active: dev
|
||||
# config:
|
||||
# import: 'optional:configserver:http://localhost:9999'
|
||||
data:
|
||||
redis:
|
||||
host: service.flagnote.com
|
||||
@@ -12,15 +18,14 @@ spring:
|
||||
poolMaxWait: 3
|
||||
password: 1qazx1qazx
|
||||
codec:
|
||||
max-in-memory-size: 100MB
|
||||
max-in-memory-size: 10MB
|
||||
servlet:
|
||||
multipart:
|
||||
# 最大支持文件大小
|
||||
max-file-size: 100MB
|
||||
max-file-size: 10MB
|
||||
# 最大支持请求大小
|
||||
max-request-size: 100MB
|
||||
application:
|
||||
name: gateway
|
||||
max-request-size: 10MB
|
||||
|
||||
cloud:
|
||||
discovery:
|
||||
client:
|
||||
|
||||
Reference in New Issue
Block a user