会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Codorld
Don't BB. Show me the code.
首页
新随笔
联系
管理
2022年5月25日
java接口多实现注入方法总结
摘要: 1. 单实现接口注入方法 1.1 构造注入(推荐) @RequiredArgsConstructor public class TestController { // 其只有一个具体的实现类 private final DemoService demoService; } 1.2 全参构造注入 @A
阅读全文
posted @ 2022-05-25 10:41 Codorld
阅读(2376)
评论(0)
推荐(0)
编辑
公告