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。

posted @ 2019-05-24 16:30  迷茫的kia  阅读(576)  评论(0编辑  收藏  举报