classes that start with Nullable is not support ?
Occasionally I use NullableXXX as a Service name
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class NullableService {
@Autowired
DemoBean demoBean;
public void show() {
System.out.println(demoBean);
}
}
I use spring version is 5.1.12.RELEASE\ 5.1.14.RELEASE \5.2.4.RELEASE
The Exception like this:
No qualifying bean of type xx.xxx.xxx.NullableService' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:342)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1126)
at cn.cninfo.day04.App.main(App.java:13)
Comment From: encircled
Hi,
I can't reproduce your issue. Most likely the problem is in configuration.
Comment From: sbrannen
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.