码迷,mamicode.com
首页 > Web开发 > 详细

mock测试出现Circular view path [trade_records]: would dispatch back to the current handler URL

时间:2017-06-20 17:49:09      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:targe   mock   void   path   dispatch   返回   isp   current   res   

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

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

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

mock测试出现Circular view path [trade_records]: would dispatch back to the current handler URL

标签:targe   mock   void   path   dispatch   返回   isp   current   res   

原文地址:http://www.cnblogs.com/minjay/p/7054936.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!