Note regarding the modifications of the yaml file from 2.0.0 to 2.1.0

If, to configure the environment variables, instead of using the SETENV script you have decided to modify manually the yaml file, it is necessary to appropriately configure the variable whenever the batch version changes.

Section spring

The block

feign:
  client:
    config:
      hpan-service:
        connectTimeout: ${REST_CLIENT_CONNECT_TIMEOUT:${HPAN_REST_CLIENT_CONNECT_TIMEOUT:5000}}
        readTimeout: ${REST_CLIENT_READ_TIMEOUT:${HPAN_REST_CLIENT_READ_TIMEOUT:5000}}
        loggerLevel: ${REST_CLIENT_LOGGER_LEVEL:${HPAN_REST_CLIENT_LOGGER_LEVEL:BASIC}}

must be moved from feign.client.config.hpan-service to spring.cloud.openfeign.client.config.hpan-service.

Refer to the application sample here.

Section Apache client

Add the following block at the end of the application.yaml:

apache:
  httpclient:
    config:
      socketTimeoutInSeconds: ${APACHE_CLIENT_SOCKET_TIMEOUT_SECONDS:180}
      connectTimeoutInSeconds: ${APACHE_CLIENT_CONNECT_TIMEOUT_SECONDS:180}
      timeToLiveInSeconds: ${APACHE_CLIENT_TTL_SECONDS:600}

Section User-Agent

rest-client:
  user-agent:
    version: 2.0.x
rest-client:
  user-agent:
    version: 2.1.0

Last updated