All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itxiaoer.commons.upload.config.FileUploadProperties Maven / Gradle / Ivy

The newest version!
package com.itxiaoer.commons.upload.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author : liuyk
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "commons.upload")
@EnableConfigurationProperties
public class FileUploadProperties {

    /**
     * 文件存放目录
     */
    @Value("${commons.upload.dir}")
    private String dir;

    /**
     * id生成规则
     */
    @Value("${commons.upload.idRule:uuid}")
    private String idRule;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy