Springboot 经常使用注解

@SpringBootApplication:html 包含@Configuration、@EnableAutoConfiguration、@ComponentScanjava 一般用在主类上。spring @Repository:json 用于标注数据访问组件,即DAO组件。缓存 @Service:多线程 用于标注业务层组件。app @RestController:框架 用于标注控制层组件(如s
相关文章
相关标签/搜索