| | |
| | | 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") |
| | | @ConfigurationProperties(prefix = "file", ignoreUnknownFields = true) |
| | | @Data |
| | | public class FileProperties { |
| | | private String path = "D:/upload"; |
| | |
| | | // 令牌秘钥 |
| | | @Value("${token.secret}") |
| | | private String jwtSecret; |
| | | private Boolean compress; |
| | | private DataSize needCompressSize; |
| | | private float compressQuality; |
| | | } |