Skip to content

Instantly share code, notes, and snippets.

@Sedose
Created August 3, 2025 06:07
Show Gist options
  • Select an option

  • Save Sedose/2e330deea9d1618e4b4c7d71c346d21a to your computer and use it in GitHub Desktop.

Select an option

Save Sedose/2e330deea9d1618e4b4c7d71c346d21a to your computer and use it in GitHub Desktop.
TimeApiConfig is injected successfully into MyService in runtime
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