Spring Boot 注解: @SpringBootApplication:标识 Spring Boot 应用程序的入口类,启动 Spring Boot 应用。 @RestController:组合注解,用于标识 RESTful 风格的控制器类,等同于 @Controller 和 @ResponseBody 的组合。 @Autowired:自动装配 Spring Bean,可以在属性、构造函数或方法上使用。 @RequestMapping:用于映射 HTTP 请求到处理方法,可用于类或方法级别,指定 URL 映射规则。 @Service、@Repository、@Component:分别用于标识服务、数据访问对象(DAO)和其他组件类。 @Value:注入外部配置属性的值
点赞 评论

相关推荐

🐭🐭不想面试啦�...:哈哈哈哈,是hc稀缺是吧。一边稀缺,一边后端简历多到捞不出来
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务