Using Spring AnnotationConfigApplicationContext

Overview Using the AnnotationConfigApplicationContext We will learn how to use the AnnotationApplicationContext. We are going to create a standalone spring application, using the AnnotationApplicationContext. In this example, we have two classes: Music Class: @Component public class Music { @Autowired private String genre; public void setGenre(String genre) { this.genre = genre; } @Override public String toString() … Continue reading Using Spring AnnotationConfigApplicationContext