类的使用
org.springframework.stereotype.Controller
使用Controller的程序包 程序包 说明 org.springframework.web.bind.annotation Annotations for binding requests to controllers and handler methods as well as for binding request parameters to method arguments.org.springframework.web.bind.annotation中Controller的使用
注释类型为Controller的org.springframework.web.bind.annotation中的类 修饰符和类型 类 说明 interface
RestController
A convenience annotation that is itself annotated with@Controller
and@ResponseBody
.