1.首先是注册bean类:@Component、@Responsitory、@Controller、@Service、Configuration这些注解是把要实例化的对象装化成一个bean,放到Ioc容器中,使用时需要和下面的两个注解配合。1.首先是注册bean类:@Component、@Responsitory、@Controll
1.首先是注册bean类:@Component、@Responsitory、@Controller、@Service、Configuration这些注解是把要实例化的对象装化成一个bean,放到Ioc容器中,使用时需要和下面的两个注解配合。1.首先是注册bean类:@Component、@Responsitory、@Controll