会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
meetzy
Life is sometimes not to do what you like, but to like what you do.
博客园
首页
新随笔
联系
管理
2017年11月28日
Spring注入静态类型
摘要: 第一种方法:@Component public class Test { private static TestDi testDi; @Autowired public void setTestDi(TestDi testDi) { Test.testDi=testDi; } } 第二种方法: @C
阅读全文
posted @ 2017-11-28 10:24 meetzy
阅读(547)
评论(0)
推荐(0)
编辑
公告