| 对比新文件 |
| | |
| | | package com.ruoyi.common.config; |
| | | |
| | | import lombok.Data; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.util.unit.DataSize; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | @Configuration |
| | | @Component |
| | | @ConfigurationProperties(prefix = "file", ignoreUnknownFields = true) |
| | | @Data |
| | | public class FileProperties { |
| | | private String path = "D:/upload"; |
| | | private String urlPrefix = "/file"; |
| | | private String domain = "http://localhost:8080"; |
| | | private BigDecimal expired = new BigDecimal("120"); |
| | | private Integer useLimit = 10; |
| | | // 浠ょ墝绉橀挜 |
| | | @Value("${token.secret}") |
| | | private String jwtSecret; |
| | | private Boolean compress; |
| | | private DataSize needCompressSize; |
| | | private float compressQuality; |
| | | } |