对比新文件 |
| | |
| | | package org.springblade.core.boot.props; |
| | | |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | |
| | | /** |
| | | * BladeFileProperties |
| | | * |
| | | * @author Chill |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @ConfigurationProperties("blade.file") |
| | | public class BladeFileProperties { |
| | | |
| | | /** |
| | | * 杩滅▼涓婁紶妯″紡 |
| | | */ |
| | | private boolean remoteMode = false; |
| | | |
| | | /** |
| | | * 澶栫綉鍦板潃 |
| | | */ |
| | | private String uploadDomain = "http://127.0.0.1:8999"; |
| | | |
| | | /** |
| | | * 涓婁紶涓嬭浇璺緞(鐗╃悊璺緞) |
| | | */ |
| | | private String remotePath = System.getProperty("user.dir") + "/target/blade"; |
| | | |
| | | /** |
| | | * 涓婁紶璺緞(鐩稿璺緞) |
| | | */ |
| | | private String uploadPath = "/upload"; |
| | | |
| | | /** |
| | | * 涓嬭浇璺緞 |
| | | */ |
| | | private String downloadPath = "/download"; |
| | | |
| | | /** |
| | | * 鍥剧墖鍘嬬缉 |
| | | */ |
| | | private Boolean compress = false; |
| | | |
| | | /** |
| | | * 鍥剧墖鍘嬬缉姣斾緥 |
| | | */ |
| | | private Double compressScale = 2.00; |
| | | |
| | | /** |
| | | * 鍥剧墖缂╂斁閫夋嫨:true鏀惧ぇ;false缂╁皬 |
| | | */ |
| | | private Boolean compressFlag = false; |
| | | |
| | | /** |
| | | * 椤圭洰鐗╃悊璺緞 |
| | | */ |
| | | private String realPath = System.getProperty("user.dir"); |
| | | |
| | | /** |
| | | * 椤圭洰鐩稿璺緞 |
| | | */ |
| | | private String contextPath = "/"; |
| | | |
| | | |
| | | public String getUploadRealPath() { |
| | | return (remoteMode ? remotePath : realPath) + uploadPath; |
| | | } |
| | | |
| | | public String getUploadCtxPath() { |
| | | return contextPath + uploadPath; |
| | | } |
| | | |
| | | } |