Springboot經常使用註解大全

springboot註解: @Service: 註解在類上,表示這是一個業務層bean @Controller:註解在類上,表示這是一個控制層bean @Repository: 註解在類上,表示這是一個數據訪問層bean @Component: 註解在類上,表示通用bean ,value不寫默認就是類名首字母小寫 @Autowired:按類型注入.默認屬性required= true;當不能肯定
相關文章
相關標籤/搜索