13 lines
481 B
Java
13 lines
481 B
Java
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) {}
|