您的位置: 首页 > 文章 > 【springmvc的请求流程】:handler 的作用与配置,注解配置handler的requestMapping的配置 【springmvc的请求流程】:handler 的作用与配置,注解配置handler的requestMapping的配置 分类: 文章 • 2024-03-07 10:27:51 handler三种配置 方式一 实现HttpRequestHandler 接口,并且返回对象也是要放在域对象request 当中 方式二: 实现Controller接口,其实modelAndView .addObject 相当于是request.setAttribute的方法,最终对象也是放在域对象request 中的