class LocalFileProperties {

    /**
     * 上传文件访问路径
     */
    private String accessPath;

    /**
     * 上传文件保存路径
     */
    private String uploadPath;

    /**
     * 上传文件访问URL前缀
     */
    private String accessUrl;

    public void setUploadPath(String uploadPath) {<FILL_FUNCTION_BODY>}

}

        if (StringUtils.isBlank(uploadPath)) {
            // 默认为当前项目路径下的upload目录
            String userDir = CommonConstant.USER_DIR;
            uploadPath = userDir + File.separator + CommonConstant.UPLOAD + File.separator;
        } else {
            // 如果不是以/或\\结尾，则根据系统环境加上对应的斜杠结尾
            if (!(uploadPath.endsWith(CommonConstant.SLASH) || uploadPath.endsWith(CommonConstant.DOUBLE_BACKSLASH))) {
                uploadPath = uploadPath + File.separator;
            }
        }
        this.uploadPath = uploadPath;
    
<no_super_class>