摘要:
使用mock测试Controller时报错如下 在 debug 模式下,可以知道 standaloneSetup(clrr) 得到的是 StandaloneMockMvcBuilder 对象和 exception 中报异常的类名一致。 在 Cannot create MockHttpSession 阅读全文
摘要:
背景 众所周知,Tomcat的Default Servlet的servlet-mapping为 如果在基于SpringMVC的项目中做如下设置: DispatcherServlet的 url-pattern同样设置为 “/”, 在web.xml中添加 在后台代码中添加Controller,用于响应对 阅读全文