Skip to content
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

Kotlin RefreshScope making empty Configuration #1219

Open
Monax111 opened this issue Mar 16, 2023 · 0 comments
Open

Kotlin RefreshScope making empty Configuration #1219

Monax111 opened this issue Mar 16, 2023 · 0 comments

Comments

@Monax111
Copy link

Monax111 commented Mar 16, 2023

boot:2.6.4
cloud:2021.0.1

My kotlin configuration is inherited from another class.
If i add RefreshScope annotation, spring create empty CGLib wrapper with null field for my configuration

demo project

  1. run gradle bootRun
  2. see in console 0 null for configuration

I expected value from my application.yaml

@Monax111 Monax111 changed the title Koltin RefreshScope making empty Configuration Kotlin RefreshScope making empty Configuration Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants