package com.qianwen.core.boot.props; import com.qianwen.core.tool.utils.PathUtil; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.lang.Nullable; @ConfigurationProperties("blade.upload") @RefreshScope public class BladeUploadProperties { @Nullable private String savePath = PathUtil.getJarPath(); public void setSavePath(@Nullable final String savePath) { this.savePath = savePath; } @Nullable public String getSavePath() { return this.savePath; } }