Skip to content

Commit 38869da

Browse files
committed
Comment out @configuration java class to temporarily remove bug
1 parent 2010289 commit 38869da

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed
Binary file not shown.
Binary file not shown.

src/com/gnguyen92/springdemoannotations/SwimCoach.java

+8-7
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ public class SwimCoach implements Coach {
1313

1414
// Configure constructor dependency injection with @Autowired annotation **********
1515
// @Qualifier for constructor is added as an argument
16-
// @Autowired
17-
// public SwimCoach(@Qualifier("fileRandomSkill")SkillLevel currentSkill){
18-
// System.out.println(">> SwimCoach: inside @Autowired @Qualifier default constructor.");
19-
// this.currentSkill = currentSkill;
20-
// }
21-
22-
public SwimCoach(SkillLevel currentSkill) {
16+
@Autowired
17+
public SwimCoach(@Qualifier("fileRandomSkill")SkillLevel currentSkill){
18+
System.out.println(">> SwimCoach: inside @Autowired @Qualifier default constructor.");
2319
this.currentSkill = currentSkill;
2420
}
21+
22+
// Configure constructor for ValuesConfig @Configuration class
23+
// public SwimCoach(SkillLevel currentSkill) {
24+
// this.currentSkill = currentSkill;
25+
// }
2526

2627
public String getDailyWorkout() {
2728
return "Breast stroke, back stroke, and 30 laps of freestyle.";

src/com/gnguyen92/springdemoannotations/ValuesConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Add @Configuration annotation to tell Java this is a config file
99
// Add @ComponentScan("package to scan")
10-
@Configuration
10+
//@Configuration
1111
@ComponentScan("com.gnguyen92.springdemoannotations")
1212
public class ValuesConfig {
1313

0 commit comments

Comments
 (0)