can anyone tell me why @autowired is saying field injection is not recommended and the TextWriter object 'text' also says it could not autowire because there is more than one bean of textwriter type.
@RestController
public class HelloWorld{
@Autowired
TextWriter text
public HelloWorld(TextWriter text){
this.text = text;
}
@RequestMapping("/")
public String index(){
return "Hello World";
}
}