Spring MVC中的Controller是Serlvet吗?

引用:https://www.cnblogs.com/metamind/p/10449557.html

Spring MVC 4.2.4.RELEASE 中文文档

https://www.w3cschool.cn/spring_mvc_documentation_linesh_translation/?

判断一个类是不是servlet,主要是看这个类有没有继承HttpServlet。

controller注解的类,都是自己写的类,没有继承HttpServlet。所以不可能是servlet。

原文地址:https://www.cnblogs.com/klory/p/10918866.html