Skip to content

Enable a properties journal #27711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tomasbjerre opened this issue Nov 20, 2021 · 1 comment
Closed

Enable a properties journal #27711

tomasbjerre opened this issue Nov 20, 2021 · 1 comment
Labels
for: external-project Needs a fix in external project in: core Issues in core modules (aop, beans, core, context, expression)

Comments

@tomasbjerre
Copy link

Problem

I have multiple applications running within same environment. They share some property files.

It is hard to figure out what properties are actually being used by each application. Not only what properties are available.

Proposed solution

Enable a properties journal. Something that:

  • Prints all used properties on startup.
  • Allow users to configure a callback whenever a property is read.

This would allow note all used properties, in something like InfluxDB or whatever.

I have implemented this by listening for beans being created, using reflection to find usage of @Value, resolving values of those annotations... but would be nice if this was a feature in Spring.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 20, 2021
@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Nov 22, 2021
@snicoll
Copy link
Member

snicoll commented Sep 28, 2023

Thanks for the suggestion but such high-level, application-related, feature belongs more in Spring Boot. This was raised before, see spring-projects/spring-boot#11278 and the linked issues.

@snicoll snicoll closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2023
@snicoll snicoll added for: external-project Needs a fix in external project and removed status: waiting-for-triage An issue we've not yet triaged or decided on type: enhancement A general enhancement labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project Needs a fix in external project in: core Issues in core modules (aop, beans, core, context, expression)
Projects
None yet
Development

No branches or pull requests

4 participants