@Component:指明一个自动扫描的组件类(auto scan component);
@Repository:指明该类是持久层(persistence layer)的DAO Component;
@Service:指明该类是业务层(business layer)的一个Service Component;
@Controller:指明该类是表现层(presentation layer)的一个Controller Component;
@Component:指明一个自动扫描的组件类(auto scan component);
@Repository:指明该类是持久层(persistence layer)的DAO Component;
@Service:指明该类是业务层(business layer)的一个Service Component;
@Controller:指明该类是表现层(presentation layer)的一个Controller Component;