首页>代码>springboot+mybatis-plus框架实现java web项目公共图片上传接口(图片服务器)>/imgserver/src/main/java/com/npf/imgserver/common/constant/Constants.java
package com.npf.imgserver.common.constant; /** * Created with IDEA * <p> * 常量类 默认public static final 定义 * author: NiPengFei * Date:18/9/23 * Time:上午1:10 */ public interface Constants { /*图片 最大限制 4m 4*1024*1000 */ Integer IMG_CONTENT_LIMIT = 4096000; /*图片 上传路径*/ String IMG_UPLOAD_URL = "D:/ImgUpload/"; // String IMG_UPLOAD_URL = "/Users/a/Desktop/img"; /*图片后缀名*/ String IMG_SUFFIX = ".jpg"; /*服务器IP*/ String HOST_IP = "http://127.0.0.1:9090"; /*url资源访问映射地址*/ String IMG_PATH_URL = "/images"; /*url资源映射物理地址 Mac OS系统*/ String IMG_MAPPING_PATH_MAC = "file:///Users/a/Desktop/img/"; /*url资源映射物理地址 Windows系统*/ String IMG_MAPPING_PATH_WINDOWS = "file:/D:/ImgUpload/"; /*url资源映射物理地址 Linux系统*/ String IMG_MAPPING_PATH_LINUX = "/Users/a/Desktop/img/"; /*customer_list redis key*/ String REDIS_CUSTOMER_LIST = "redis_customer_list"; /*windows环境 斜线*/ String WINDOWS_SEPARATOR = "/"; }
最近下载更多