一、该问题的重现步骤是什么?
1. 在blade-biz的blade-service下新建了一个模块
2. 新建一个controller方法,方法中引入private final MinioTemplate minioTemplate;并在方法上加入注解@AllArgsConstructor
3.项目启动后提示:required a bean of type 'org.springblade.core.oss.MinioTemplate' that could not be found.
二、你期待的结果是什么?实际看到的又是什么?
期待的结果:启动成功
实际看到:启动失败
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
BladeX+Blade-biz 版本: 4.4.0.RELEASE 系统:win
四、请提供详细的错误堆栈信息,这很重要。
已配置到nacos
报错信息:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springblade.commonfile.controller.UploadController required a bean of type 'org.springblade.core.oss.MinioTemplate' that could not be found.
Action:
Consider defining a bean of type 'org.springblade.core.oss.MinioTemplate' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:55356', transport: 'socket'
Process finished with exit code 1
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端