question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spring DI guide - ideas for enhancements

See original GitHub issue

I was playing a bit with Spring DI and Quarkus before Christmas. I took repo referenced from baeldung.com site, trimmed the code and pom.xml to use just di.spring package. After the trimming I tried to migrate source code to use quarkus-spring and then I tried to migrate tests. I have ideas for enhancements in Spring DI guide

Code is here: https://github.com/rsvoboda/tutorials/commits/experiments

@ComponentScan and @Import In https://github.com/rsvoboda/tutorials/commit/68c9f76fdcd181b4dc913977f564f09705784beb I had to comment out org.springframework.context.annotation.ComponentScan and org.springframework.context.annotation.Import stuff

Based on the discussion with @geoand, @ComponentScan is entirely unnecessary because of the build time processing. @Import is not supported as we don’t support XML config.

Info about @ComponentScan and @Import should be added into https://quarkus.io/guides/spring-di#conversion-table or nearby. People without Quarkus context won’t know the above details and it will make Quarkus onboarding easier.

ApplicationContext There is nothing about org.springframework.context.ApplicationContext in our guides. We don’t support that - it’s too tied to Spring internals. Spring DI guide should provide some context and explain into what ApplicationContext translates in Arc / Quarkus DI world.

Testing For tests, we don’t support any of the Spring testing stuff. It’s just so different than what we have in Quarkus. https://quarkus.io/guides/getting-started-testing could be linked from the guide.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Jan 11, 2021

There is no pressure on this, so feel free to do it whenever you like 😃

0reactions
geoandcommented, May 17, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Dependency Injection - DigitalOcean
This tutorial is aimed to provide details about Spring Dependency Injection example with both annotation based configuration and XML file based ...
Read more >
Spring Framework Reference Documentation
This reference guide provides detailed information about the Spring Framework. It provides comprehensive documentation for all features, as well as some ...
Read more >
Spring Dependency Injection - Baeldung
Dependency Injection is a fundamental aspect of the Spring framework, through which the Spring container “injects” objects into other objects or “dependencies”.
Read more >
What are Dependency Injection & Spring Framework about?
We use Dependency Injection (DI) to implement loose coupling. The choice of any particulary DI Container is not that important.
Read more >
Quarkus Extension for Spring DI API
This guide explains how a Quarkus application can leverage the well known Dependency Injection annotations included in the Spring Framework.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found