I m creating an util class, but the problem is that a service class is not being autowired. The autowired class is also used elsewhere, so I just copied the autowire code. And the package is being scanned.
public class X implements Y{
@Autowired
private Z z;
public String getA(B b) {
int a= Integer.parseInt(b);
return z.getD(a);
}
}
是否有任何人想为什么尽管如此,却仍然无效?