ЛР6: наблюдаемость, SLO и диагностика отказов
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package ru.mtusi.messenger.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.bind.DefaultValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ConfigurationProperties(prefix = "upload")
|
||||
public record UploadProperties(
|
||||
@DefaultValue("10485760") long maxBytes,
|
||||
@DefaultValue("40000000") long maxPixels,
|
||||
@DefaultValue({"image/png", "image/jpeg"}) List<String> allowedContentTypes) {}
|
||||
Reference in New Issue
Block a user