java.lang.NullPointerException: null at com.qsssyh.controller.UserController.getUser(UserController.java:25) ~[classes/:na] at Sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method) ~ [na: 1.8.0 comes with _77] the at Sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62) ~ [na: 1.8.0 comes with _77] the at Sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java: ~ [na: 1.8.0 comes with _77] the at Java. Lang. Reflect. Method. Invoke (498) Method. The Java: ~ [na: 1.8.0 comes with _77] the at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189) ~[spring-web-Copy the code

Solution:

1. Check whether the @reference annotation is a annotation under alibaba package

2. Check whether the startup class is configured with scan annotations