添加热更新&修复bug
This commit is contained in:
parent
1e68c54f92
commit
2f3a69d278
@ -1,6 +1,7 @@
|
|||||||
package cn.axzo.oss.integration.s3.config;
|
package cn.axzo.oss.integration.s3.config;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -9,6 +10,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* @author: mr.jie
|
* @author: mr.jie
|
||||||
* @date: 2021-07-29 17:57
|
* @date: 2021-07-29 17:57
|
||||||
**/
|
**/
|
||||||
|
@RefreshScope
|
||||||
@Component
|
@Component
|
||||||
public class AliOssConfig {
|
public class AliOssConfig {
|
||||||
|
|
||||||
|
|||||||
@ -179,7 +179,8 @@ public class FileServiceImpl implements FileService {
|
|||||||
|
|
||||||
// 保存失败
|
// 保存失败
|
||||||
if (Utility.isBlank(fileUrl)) {
|
if (Utility.isBlank(fileUrl)) {
|
||||||
fileDao.save(ossFile);
|
log.error("fileUrl is empty");
|
||||||
|
//fileDao.save(ossFile);
|
||||||
throw new BizException(CodeEnum.FILE_UPLOAD_FAILED);
|
throw new BizException(CodeEnum.FILE_UPLOAD_FAILED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user