DispatcherServlet is not assignable to javax.servlet.Filter

在idea工具中出现DispatcherServlet is not assignable to javax.servlet.Filter,一般就是没在模块中导入依赖项。选中新建的模块,点击加号,选择library,加入即可。

DispatcherServlet is not assignable to javax.servlet.Filter_第1张图片

 DispatcherServlet is not assignable to javax.servlet.Filter_第2张图片

你可能感兴趣的:(idea,java)