首页>代码>SpringBoot集成Thumbnailator压缩图片>/springboot-thumbnailator/src/main/java/com/simon/springbootthumbnailator/config/ImgZipConfig.java
package com.simon.springbootthumbnailator.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 图片配置参数
 *
 * @author Simon
 */
@Component
public class ImgZipConfig {

    //图片默认上传服务器地址
    public static String imagePath;
    //图片压缩比例
    public static Double defaultScale;
    //图片上传默认项目名称
    public static String name;

    @Value("${imgzip.img.path}")
    public void setImagePath(String $imagePath) {
        imagePath = $imagePath;
    }

    @Value("${imgzip.img.default.scale}")
    public void setDefaultScale(Double $defaultScale) {
        defaultScale = $defaultScale;
    }

    @Value("${imgzip.img.name}")
    public void setName(String $name) {
        name = $name;
    }
}
最近下载更多
crosa_Don  LV18 2023年5月22日
最代码官方  LV167 2023年2月19日
最近浏览更多
woldxy  LV12 2023年9月27日
jerry9832 2023年7月12日
暂无贡献等级
1529860026  LV24 2023年6月1日
陆程江  LV2 2023年5月29日
crosa_Don  LV18 2023年5月22日
tmdgdx  LV9 2023年4月14日
bin2337  LV4 2023年3月30日
Yimi1919  LV3 2023年3月23日
包子爱吃肉  LV1 2023年3月18日
神龙摆尾无拘束  LV2 2023年3月17日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友