1.

<!-- 配置 handlerAdapter-->
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"></bean>

这个作用就是 请求controller的路径为 /hello.do 与/hello都可以访问,不加上面配置 /hello就会报404错误

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-06-04
  • 2022-12-23
  • 2021-10-21
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案