These are chat archives for spring-cloud/spring-cloud

25th
Jul 2018
dharezlak
@dharezlak
Jul 25 2018 12:30

Hello, after updating my Spring Boot application (2.0.3 now) to Finchley.RELEASE my environment post processor code started to behave strangely (a class implementing EnvironmentPostProcessor registered via spring.factories). It is called twice with different environments; one including the classpath's bootstrap.properties file but without file system's application.properties file; second with the application.properties file located next to the fat jar on disk but without classpath's bootstrap.properties. This makes it hard to manage configuration on different environments. Is there a reason behind such behavior?

Here are the string representations of both environments for reference:

Environment: StandardEnvironment {activeProfiles=[], defaultProfiles=[default], propertySources=[ConfigurationPropertySourcesPropertySource {name='configurationProperties'}, MapPropertySource {name='bootstrap'}, MapPropertySource {name='systemProperties'}, OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}, RandomValuePropertySource {name='random'}, MapPropertySource {name='springCloudClientHostInfo'}, OriginTrackedMapPropertySource {name='applicationConfig: [classpath:/config/bootstrap.properties]'}, OriginTrackedMapPropertySource {name='applicationConfig: [classpath:/bootstrap.properties]'}]}
Environment: StandardEnvironment {activeProfiles=[], defaultProfiles=[default], propertySources=[ConfigurationPropertySourcesPropertySource {name='configurationProperties'}, MapPropertySource {name='systemProperties'}, OriginAwareSystemEnvironmentPropertySource {name='systemEnvironment'}, RandomValuePropertySource {name='random'}, OriginTrackedMapPropertySource {name='applicationConfig: [file:./application.properties]'}, ExtendedDefaultPropertySource {name='defaultProperties'}, MapPropertySource {name='springCloudClientHostInfo'}]}
Rob Maskell
@RobMaskell
Jul 25 2018 13:47
Hi, does anyone know if Spring Cloud Gateway will/should honour server.compression.enabled and server.compression.min-response-size for static files that it serves?
Enrico Hofmann
@gigo1980_gitlab
Jul 25 2018 20:25
Hi together is there a place where i can get awesome freelancer jobs with spring / docker / kubernetes focus?