摘要: pring配置中仅需这样 之后会自动创建带有@Controller,@Service,@Reponsitory,@Component注解的bean bean的id默认为类名首字母小写之后的字符串。如:UserDao->默认名字为:userDao 可有在类前修改id,如:@Controller(“us 阅读全文