Files
spring-boot-rest/spring-di/src/main/java/com/baeldung/sample/FooService.java
Sam Millington 8d6c2dc2ed [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
2019-09-16 11:00:12 +01:00

18 lines
330 B
Java

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();
}
}