随笔分类 - JAVA注解问题
@Controller和@RestController的区别?
摘要:简单理解:@RestController注解相当于@ResponseBody + @Controller合在一起的作用。 如果只是使用@RestController注解Controller,则Controller中的方法无法返回jsp页面,或者html,配置的视图解析器 InternalResour
阅读全文
浙公网安备 33010602011771号