5 Line code , Can let wechat small program on the shelf to their own APP in | Register and send it to Dajiang 、 Huawei 、 Cherry keyboard ！>>>
It is estimated that many bloggers have the same problem , At sea , I've come across this as well Spring The pit father problem of the frame , In fact, if we find out the cause of the problem , It will feel so simple , It's like scientists calculating that there is a decimal point missing in the number , I don't say much nonsense , Let me talk about my solution .
1. Reporting an error literally means ,“ Less notes , No instantiation , Class not found ”. So I followed this clue and started to find problems in the business layer
2. Sure enough , The problem was found by Ben Diao ,
If @service If the specified name is not shown SpringBeanFactoryUtil.getBean By initialing the class name A lowercase letter To get , Note that A lowercase letter ah （SpringBeanFactoryUtil Class is what I implement BeanFactoryAware The interface of , This interface doesn't explain too much ,spring In the frame ）
The problem is solved ：1.@Service("XXX") The business layer annotation is set here
2. stay getBean When , The first letter is lowercase