首页 > Web开发 > 详细

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

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

这是因为你的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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!