refactor(config): 将图片配置属性从path重命名为url
parent
004e2ba23e
commit
69a7478b13
|
|
@ -61,7 +61,7 @@ public class ImgFilesQueryExe {
|
|||
}
|
||||
|
||||
public String getImagePath() {
|
||||
return imageConfig.getPath();
|
||||
return imageConfig.getUrl();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "image")
|
||||
@ConfigurationProperties(prefix = "file")
|
||||
@Data
|
||||
public class ImageConfig {
|
||||
|
||||
private String path;
|
||||
private String url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue