Created
August 3, 2025 06:07
-
-
Save Sedose/2e330deea9d1618e4b4c7d71c346d21a to your computer and use it in GitHub Desktop.
TimeApiConfig is injected successfully into MyService in runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface ApiSettings<T> | |
| @Component | |
| class TimeApiConfig(val someString: String = "SeeMeAvailableInInjectedInRuntime") : ApiSettings<String> | |
| @Component | |
| class OtherApiConfig : ApiSettings<Integer> | |
| @Service | |
| class MyService( | |
| val apiSettings: ApiSettings<String> | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment