10:41:00,123 DEBUG AnnotationUtils:1889 - Failed to meta-introspect annotation interface org.springframework.web.bind.annotation.RequestBody: java.lang.NullPointerException
java.lang.NullPointerException
at com.example.controller.CheckItemController.add(CheckItemController.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
10:41:00,153 DEBUG RequestResponseBodyMethodProcessor:277 - Written [com.example.entity.Result@937e65] as "application/json" using [com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter@704d17]
10:41:00,154 DEBUG DispatcherServlet:1076 - Null ModelAndView returned to DispatcherServlet with name 'springmvc': assuming HandlerAdapter completed request handling
10:41:00,154 DEBUG DispatcherServlet:1000 - Successfully completed request
检查spring扫描没有问题
查看@Reference导dubbo包,
最后发现是@Reference // 查找服务
包导错了。。。。。
正确应该是:
import com.alibaba.dubbo.config.annotation.Reference;