java 新手常犯错知识点总结
java 开发新手经常犯的错误
insisxz
这个作者很懒,什么都没留下…
展开
-
javax.servlet.ServletException: Could not resolve view with name ‘xxx‘ in servlet with ...
这个错误,通常是 @Controller 没有标注 @RespBody,导致我们springMVC 没有找到你 return 对象 的 视图解析器,所以就无法对你返回的结果进行解析原创 2020-07-06 17:44:27 · 1426 阅读 · 1 评论 -
@RequestParam、@PathVariable()、@RequestBody 的使用
@RequestParam、@PathVariable()、@RequestBody1、用法首先 @RequestParam、@PathVariable 通常是放在url中,而@RequestBody 是用在请求体 body@RequestParam、@PathVariablehttp://localhost:8080/springmvc/hello/101?param1=10¶m2=20@RequestMapping("/hello/{id}") //@PathVariabl原创 2020-07-06 17:36:21 · 197 阅读 · 0 评论