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 allowedContentTypes) {}