【bug】context with path [] threw exception [Request processing failed; nested exception is java.lang

1、问题:

在上一个问题基础上点击,又出现以下错误信息

SEVERE: Servlet.service() for servlet [taotao-manager-web] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

 

2、解决

这是由于在service实现类中没有写下面的Autowired这个注解。

下次要注意。不要再犯这种小错误。耽误时间

 @Autowired
private TbContentMapper tbContentMapper;

 


版权声明:本文为lxiansheng001原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。