会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
DevinYang
博客园
首页
新随笔
联系
管理
订阅
2021年3月26日
spring 手动注入bean
摘要: springboot 工程中依赖中的对象要求单例,想在启动时注入单例,后续使用@Autowired,跟spring中@Component一样注入 废话不多贴代码 package com.ruoyi.common.config; import com.baidu.aip.ocr.AipOcr; imp
阅读全文
posted @ 2021-03-26 09:15 DevinYang
阅读(468)
评论(0)
推荐(0)
编辑
公告