方法中引入 MinioTemplate 问题

Blade 未结 1 73
sange
sange 剑侠 2025-04-02 18:19

一、该问题的重现步骤是什么?

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

image.png

image.png

image.png

image.png


报错信息:


***************************

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

五、若有更多详细信息,请在下面提供。

1条回答
代码语言
提交回复