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

Spring Injection Service breaks resolution of other Spring dependencies #17

Closed
raner opened this issue Sep 30, 2019 · 0 comments
Closed

Comments

@raner
Copy link
Owner

raner commented Sep 30, 2019

As it turns out, just returning an AutowireCandidateResolver that handles just loginject dependencies and returns null for all other dependencies does not quite work.
I recently tried to use loginject in the following manner on Spring 5.3.19:

class Configuration
{
  @Value("${host.url}")
  String hostUrl;

  @Inject
  Logger logger;
}

If I added loginject to the Spring configuration injection of the field annotated with @Value no longer worked.

raner added a commit that referenced this issue Jan 12, 2020
@raner raner closed this as completed Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant