I know the default bean scope is singleton when we use @Autowired with @Component.
But what if we use JSR-330's @Inject with spring's @Component (without using @Scope or @Singleton)?
I know the default bean scope is singleton when we use @Autowired with @Component.
But what if we use JSR-330's @Inject with spring's @Component (without using @Scope or @Singleton)?
Copyright © 2021 Jogjafile Inc.
There's no difference between @Inject or @Autowired
Note JSR-299 is built on top of JSR-330
All spring beans, as
@Component, are by default singletons