阅读背景:

SpringBoot支持JSP页面跳转(基于Gradle)

来源:互联网 

在Controller中使用 @RestController 注解,该注解是spring 4.0引入的,其包含了 @Controller 和 @ResponseBody 注解。我们可以理解为 @Controller的增强版。专门为响应内容式的 Controller 而设计的,可以直接响应对象为JSON。 在Controller中使用 @RestController 注解,该注解是sprin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: