Spring通過註解裝配Bean

Spring通過註解裝配Bean         通過註解實現ServiceImpl業務 一、使用@Component裝配Bean 1、 定義類:User 在類上面加@Component註解,在屬性上面加@Value值 package com.wbg.springxmlbean.entity; import org.springframework.beans.factory.annotation
相關文章
相關標籤/搜索