Home>IT Tests>Questions>How to inject a dependency in Spring ? With the <property> tag,With the @Autowired annotation,With the <constructor> tag
Question from the Spring - Archive test
How to inject a dependency in Spring ? With the <property> tag,With the @Autowired annotation,With the <constructor> tag
Expert
What are the different ways to inject a bean?
Author: Thomas De verdièreStatus: PublishedQuestion passed 4 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Spring
0
What is a transaction manager in Spring?0
What is the name of the Spring MVC controller?0
What is the difference between Hibernate and JPA?0
What is the purpose of the Spring PropertyPlaceholderConfigurer class?0
Is the following code valid?
@Configuration
public class MyConfiguration {
@Bean
public MyBean myBean() {
return new MyBean();
}
}