- 链接地址:https://blog.csdn.net/Student108/article/details/108441074
- 链接标题:Spring的注解说明_spring注解-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:6052
文章浏览阅读693次。1 Spring注解1.1 要求开启包扫描<!-- 开启注解扫描 --><context:component-scan base-package="com.zgd.learn.spring.demo02"/>1.1 通用注解1.1.1 @Component类注解,被spring管理,beanId为anno,有下面两种写法@Component 不添加参数,默认为类名的首字母小写@Component(“anno”),id注入@Component(value =_spring注解
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:spring注解