[BAEL-16662] Move articles out of spring-core and into spring-di and … (#7750)
* [BAEL-16662] Move articles out of spring-core and into spring-di and spring-core-2 * [BAEL-16662] Fixed required config classes * [BAEL-16662] - Removed unused dependencies from spring-core
This commit is contained in:
committed by
Josh Cummings
parent
6ee7181125
commit
8d6c2dc2ed
17
spring-di/src/main/java/com/baeldung/sample/FooService.java
Normal file
17
spring-di/src/main/java/com/baeldung/sample/FooService.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.baeldung.sample;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class FooService {
|
||||
|
||||
@Autowired
|
||||
@FormatterType("Foo")
|
||||
private Formatter formatter;
|
||||
|
||||
public String doStuff() {
|
||||
return formatter.format();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user