@Component、@Repository 、@Service、@Controller
@Controller 控制层 ,通常我们所说的action层
@Service 业务逻辑层,通常我们所说的service层或者manger层
@Repository 持久层,通常我们所说的Dao层
@Component 组件,书面意思就是我们不知道在哪一层时使用
虽然对于spring来说,这4个注解的效果都是一样的,当spring扫描到这些注解时,都会当做需要注入的bean加载到上下文中
但是在项目中,我们应该严格按照这几个注解的含义来使用,这样有利于我们web架构