
Spring核心思想
数据管理:事务、整合数据库
web
集成:邮件、定时任务、消息队列、安全控制

管理bean:给bean,给配置(知道关系)

1.启动tomcat
2.自动创建Spring容器,自动扫描某些包下的某些bean,让bean装配到容器中

@SpringBootConfiguration 说明这个类是配置类
@EnableAutoConfiguration 开启自动装配
@ComponentScan 一般扫描配置类所在的包以及子包下的bean
bean注解:(语义区别)
@Component
@Controller
@Service
@Repository
四个都可以加到类上,使其被识别成bean,最好按照语义区别使用