bliblidotcom / blibli-backend-framework

Blibli.com Backend Framework
https://www.blibli.com/
Apache License 2.0
75 stars 13 forks source link

ApiClient does not read spring default CodecProperties #34

Closed adhikasp closed 4 years ago

adhikasp commented 4 years ago

What I set spring.codec.max-in-memory-size=100MB

Expected ApiClient data buffer will increase

Actual ApiClient data buffer still set to default 256K

How to fix In ApiClientMethodInterceptor, make it read the CodecProperties too, see org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration.DefaultCodecsConfiguration.defaultCodecCustomizer

Workaround Create ApiClientCodecCustomizer and set defaultCodec's maxInMemorySize

adhikasp commented 4 years ago

Actually, this should be a separated setting.