Claus Ibsen created CAMEL-23897:
-----------------------------------
Summary: PropertiesDevConsole should show Spring Boot application
properties
Key: CAMEL-23897
URL: https://issues.apache.org/jira/browse/CAMEL-23897
Project: Camel
Issue Type: Improvement
Components: camel-spring-boot
Reporter: Claus Ibsen
The PropertiesDevConsole (Configuration tab in camel-tui) is empty for Spring
Boot apps because PropertiesComponent.loadProperties() only returns properties
from Camel own sources (initialProperties, .properties files,
overrideProperties). Spring Boot application properties (server.port, custom
app properties like greeting=hello, etc.) live in Spring Environment and are
not enumerable through Camel PropertiesComponent.
For JBang/standalone Camel, all properties go through Camel PropertiesComponent
so the dev console works fine. The gap is specific to Spring Boot (and possibly
Quarkus).
*Important:* Registering a LoadablePropertiesSource wrapping Spring Environment
would make it participate in placeholder resolution (DefaultPropertiesLookup
iterates all sources), which could conflict with SpringPropertiesParser and
cause double-resolution or precedence issues.
Safer approach: Override PropertiesDevConsole in camel-spring-boot to read from
Spring ConfigurableEnvironment (enumerate all EnumerablePropertySource
entries). This is read-only and does not affect the resolution pipeline.
The console should show ALL application properties (not just camel.*), matching
what the standalone Camel dev console already does.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)