这是因为你的Controller中返回的视图名称与你当前的requestMapping名称一样,这并没有很好的解决方案,除非你改掉其中一个名字。

因为springframework test时你并没有指定一个ViewResolver,默认启用的是InternalResourceViewResolver。

Stack Overflow:https://stackoverflow.com/questions

相关文章:

  • 2021-11-18
  • 2021-12-05
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-09-27
猜你喜欢
  • 2021-07-02
  • 2021-10-19
  • 2022-12-23
  • 2021-06-05
  • 2021-05-12
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案