SpringBoot2.x的基本使用
摘要:SpringBoot2.x的基本使用 一、SpringBoot2.x的常用注解 @Controller 作用:用于标记这个类是一个控制器,返回页面的时候使用;如果要返回JSON,则需在接口上使用@ResponseBody才可以。 @RestController 作用:用于标记这个类是个控制器,返回J
阅读全文
posted @ 2022-04-06 10:24
posted @ 2022-04-06 10:24