* [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
18 lines
330 B
Java
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();
|
|
}
|
|
|
|
}
|