minio存储文件方式修改为local存储。

This commit is contained in:
wangzhijiang
2024-03-19 14:34:47 +08:00
parent 4f334b1961
commit f1ab8f1db2
8 changed files with 220 additions and 49 deletions
@@ -164,7 +164,7 @@ public class CommonUtils {
if (dbpath.contains("\\")) { if (dbpath.contains("\\")) {
dbpath = dbpath.replace("\\", "/"); dbpath = dbpath.replace("\\", "/");
} }
return dbpath; return savePath;
} catch (IOException e) { } catch (IOException e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} catch (Exception e) { } catch (Exception e) {
@@ -1,7 +1,9 @@
package com.jero.modules.oss.controller; package com.jero.modules.oss.controller;
import com.jero.common.constant.CommonConstant;
import com.jero.common.exception.JeroBootException; import com.jero.common.exception.JeroBootException;
import com.jero.common.util.MinioUtil; import com.jero.common.util.MinioUtil;
import com.jero.modules.oss.entity.OSSFile;
import com.jero.modules.oss.service.IOSSFileService; import com.jero.modules.oss.service.IOSSFileService;
import com.jero.modules.oss.util.SplitFileUtils; import com.jero.modules.oss.util.SplitFileUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@@ -15,10 +17,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException; import java.io.*;
import java.io.IOException; import java.util.List;
import java.io.InputStream;
import java.io.OutputStream;
@Slf4j @Slf4j
@Controller @Controller
@@ -28,27 +28,50 @@ public class SplitFileController {
private String filePathCos; private String filePathCos;
@Autowired @Autowired
private IOSSFileService ossFileService; private IOSSFileService ossFileService;
@Value("${jero.uploadType}")
private String uploadType;
@ResponseBody @ResponseBody
@GetMapping("/getImage") @GetMapping("/getImage")
public void queryPageList(@RequestParam("fileName") String fileName, HttpServletResponse response, HttpServletRequest request) { public void queryPageList(@RequestParam("fileName") String fileName, HttpServletResponse response, HttpServletRequest request) {
String fileUrl = filePathCos + "/" + fileName; if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
response.setHeader("Content-Disposition", String fileId = fileName;
"attachment; filename=\"" + SplitFileUtils.encodeFileName(fileName, request) + "\""); OSSFile ossFile = ossFileService.getById(fileId);
response.setContentType("application/force-download"); String fileUrl = ossFile.getUrl();
if (MinioUtil.doesObjectExist(fileUrl)) { File file = new File(fileUrl);
try (OutputStream os = response.getOutputStream(); try {
InputStream fis = MinioUtil.download(fileUrl)) { OutputStream os = response.getOutputStream();
FileInputStream fis = new FileInputStream(file);
int len = 0; int len = 0;
while ((len = fis.read()) != -1) { while ((len = fis.read()) != -1) {
os.write(len); os.write(len);
} }
os.flush(); os.flush();
} catch (FileNotFoundException e) { }catch (FileNotFoundException e) {
throw new JeroBootException("文件不存在"); throw new JeroBootException("文件不存在");
} catch (IOException e) { } catch (IOException e) {
throw new JeroBootException("文件不存在"); throw new JeroBootException("文件不存在");
} }
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
String fileUrl = filePathCos + "/" + fileName;
response.setHeader("Content-Disposition",
"attachment; filename=\"" + SplitFileUtils.encodeFileName(fileName, request) + "\"");
response.setContentType("application/force-download");
if (MinioUtil.doesObjectExist(fileUrl)) {
try (OutputStream os = response.getOutputStream();
InputStream fis = MinioUtil.download(fileUrl)) {
int len = 0;
while ((len = fis.read()) != -1) {
os.write(len);
}
os.flush();
} catch (FileNotFoundException e) {
throw new JeroBootException("文件不存在");
} catch (IOException e) {
throw new JeroBootException("文件不存在");
}
}
} }
} }
@@ -429,4 +429,10 @@ public class SysCategoryServiceImpl extends ServiceImpl<SysCategoryMapper, SysCa
List<SysCategory> list = list(queryWrapper); List<SysCategory> list = list(queryWrapper);
return list; return list;
} }
public List<SysCategory> getList(){
// List<SysCategory> list = this.list();
List<SysCategory> list = new ArrayList<>();
return list;
}
} }
@@ -4,6 +4,8 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jero.common.constant.CommonConstant; import com.jero.common.constant.CommonConstant;
import com.jero.common.exception.JeroBootException; import com.jero.common.exception.JeroBootException;
import com.jero.common.util.CommonUtils;
import com.jero.common.util.DateUtils;
import com.jero.common.util.MinioUtil; import com.jero.common.util.MinioUtil;
import com.jero.common.util.UUIDUtils; import com.jero.common.util.UUIDUtils;
import com.jero.modules.oss.entity.OSSFile; import com.jero.modules.oss.entity.OSSFile;
@@ -21,6 +23,7 @@ import com.jero.modules.split.util.ReadWordTable;
import com.jero.modules.split.vo.TitleNumberVO; import com.jero.modules.split.vo.TitleNumberVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpPost;
@@ -118,6 +121,17 @@ public class FileSpiltService {
@Value("${byd.downLoadFileUrl}") @Value("${byd.downLoadFileUrl}")
private String bydDownLoadFileUrl; private String bydDownLoadFileUrl;
/**
* 本地:local miniominio 阿里:alioss
*/
@Value(value = "${jero.uploadType}")
private String uploadType;
/**
* 拆分图片文件路径
*/
@Value(value = "${jero.path.splitImgPath}")
private String splitImgPath;
/** /**
* 中国标准数据拆分 * 中国标准数据拆分
* *
@@ -187,10 +201,19 @@ public class FileSpiltService {
} }
OSSFile ossFile = ossFileList.get(0); OSSFile ossFile = ossFileList.get(0);
String readFilePath = ossFile.getUrl(); String readFilePath = ossFile.getUrl();
if (StringUtils.isEmpty(readFilePath) || !MinioUtil.doesObjectExist(readFilePath)) { if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
throw new JeroBootException("当前文件未找到,请重新选择!"); if (StringUtils.isEmpty(readFilePath) || !MinioUtil.doesObjectExist(readFilePath)) {
throw new JeroBootException("当前文件未找到,请重新选择!");
}
splitFileIs = MinioUtil.download(readFilePath);
} else if (CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
try {
splitFileIs = new FileInputStream(readFilePath);
} catch (FileNotFoundException e) {
e.printStackTrace();
throw new JeroBootException("当前文件未找到,请重新选择!");
}
} }
splitFileIs = MinioUtil.download(readFilePath);
} else { } else {
log.info("下载文档开始========================================================="); log.info("下载文档开始=========================================================");
try { try {
@@ -276,7 +299,7 @@ public class FileSpiltService {
// addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, imageName); // addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, imageName);
//} //}
File mathToImgFile = this.getMathToImgUrl(ctoMath.xmlText()); File mathToImgFile = this.getMathToImgUrl(ctoMath.xmlText());
if (messageList.size() > 0) { if (null != mathToImgFile && messageList.size() > 0) {
addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, mathToImgFile); addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, mathToImgFile);
} }
} else if (child instanceof CTOMathPara) { } else if (child instanceof CTOMathPara) {
@@ -287,7 +310,7 @@ public class FileSpiltService {
//} //}
File mathToImgFile = this.getMathToImgUrl(ctoMathPara.xmlText()); File mathToImgFile = this.getMathToImgUrl(ctoMathPara.xmlText());
if (messageList.size() > 0) { if (null != mathToImgFile && messageList.size() > 0) {
addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, mathToImgFile); addItermsMathImage(messageList.get(messageList.size() - 1), itemValList, mathToImgFile);
} }
} }
@@ -1204,18 +1227,42 @@ public class FileSpiltService {
// 像每个条款中依次插入每一段的内容 // 像每个条款中依次插入每一段的内容
private void addItermsMathImage(SarFileSplitItemsEO message, List<SarFileSplitItemsValEO> itemsValList, File file) { private void addItermsMathImage(SarFileSplitItemsEO message, List<SarFileSplitItemsValEO> itemsValList, File file) {
byte[] bytev = null;
try (FileInputStream fis = new FileInputStream(file)){
bytev = new byte[(int) file.length()];
fis.read(bytev);
}catch (IOException e){
e.printStackTrace();
}
String imageName = UUIDUtils.randomUUID10() + file.getName(); String imageName = UUIDUtils.randomUUID10() + file.getName();
String path = splitUrl + imageName; String path = splitUrl + imageName;
String filepathandname = filePathCos + "/" + imageName; if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
MinioUtil.uploadByte(bytev, filepathandname); File splitImgFolder = new File(splitImgPath);
if (!splitImgFolder.exists()) {
splitImgFolder.mkdirs();
}
String newFilePath = splitImgPath + imageName;
try {
File newFile = new File(newFilePath);
FileUtils.copyFile(file, newFile);
} catch (IOException e) {
e.printStackTrace();
}
//上传成功 进行数据库存储
OSSFile ossFile = new OSSFile();
// 文件名
String fileName = file.getName();
fileName = CommonUtils.getFileName(fileName);
ossFile.setFileName(fileName);
ossFile.setUrl(newFilePath);
ossFile.setId(imageName);
iossFileService.save(ossFile);
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)){
byte[] bytev = null;
try (FileInputStream fis = new FileInputStream(file)){
bytev = new byte[(int) file.length()];
fis.read(bytev);
}catch (IOException e){
e.printStackTrace();
}
String filepathandname = filePathCos + "/" + imageName;
MinioUtil.uploadByte(bytev, filepathandname);
}
String imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\">"; String imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\">";
message.getItemsCondi().add(imgConVal); message.getItemsCondi().add(imgConVal);
@@ -1228,13 +1275,42 @@ public class FileSpiltService {
for (String pictureId : imageBundleList) { for (String pictureId : imageBundleList) {
XWPFPictureData pictureData = p.getDocument().getPictureDataByID(pictureId); XWPFPictureData pictureData = p.getDocument().getPictureDataByID(pictureId);
String imageName = UUIDUtils.randomUUID10() + pictureData.getFileName(); String imageName = UUIDUtils.randomUUID10() + pictureData.getFileName();
String path = splitUrl + imageName;
byte[] bytev = pictureData.getData(); byte[] bytev = pictureData.getData();
String filepathandname = filePathCos + "/" + imageName; String imgConVal = "";
try { String imgCon = "";
String path = splitUrl+imageName; if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
String fileName = pictureData.getFileName();
File splitImgFolder = new File(splitImgPath);
if (!splitImgFolder.exists()) {
splitImgFolder.mkdirs();
}
String newFilePath = splitImgPath + imageName;
try (FileOutputStream fos = new FileOutputStream(newFilePath)) {
fos.write(bytev);
} catch (IOException e) {
e.printStackTrace();
log.error("写入图片时发生错误:" + e.getMessage());
}
//上传成功 进行数据库存储
OSSFile ossFile = new OSSFile();
// 文件名
fileName = CommonUtils.getFileName(fileName);
ossFile.setFileName(fileName);
ossFile.setUrl(newFilePath);
ossFile.setId(imageName);
iossFileService.save(ossFile);
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
String filepathandname = filePathCos + "/" + imageName;
MinioUtil.uploadByte(bytev, filepathandname); MinioUtil.uploadByte(bytev, filepathandname);
String imgCon = path; }
String imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\">"; imgCon = path;
imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\">";
try {
message.getItemsCondi().add(imgConVal); message.getItemsCondi().add(imgConVal);
message.setItemContent(message.getItemContent() + imgConVal); message.setItemContent(message.getItemContent() + imgConVal);
itemsValList.add(getSplitItemsValObject(message.getId(), SplitFilePragraTypeEnum.IMG.getValue(), imgCon, message.getItemsCondi().size(), null)); itemsValList.add(getSplitItemsValObject(message.getId(), SplitFilePragraTypeEnum.IMG.getValue(), imgCon, message.getItemsCondi().size(), null));
@@ -1250,12 +1326,39 @@ public class FileSpiltService {
XWPFPictureData pictureData = p.getDocument().getPictureDataByID(pictureId); XWPFPictureData pictureData = p.getDocument().getPictureDataByID(pictureId);
String imageName = UUIDUtils.randomUUID10() + pictureData.getFileName(); String imageName = UUIDUtils.randomUUID10() + pictureData.getFileName();
byte[] bytev = pictureData.getData(); byte[] bytev = pictureData.getData();
String filepathandname = filePathCos + "/" + imageName; String path = splitUrl+imageName;
try { if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
String path = splitUrl+imageName; String fileName = pictureData.getFileName();
File splitImgFolder = new File(splitImgPath);
if (!splitImgFolder.exists()) {
splitImgFolder.mkdirs();
}
String newFilePath = splitImgPath + imageName;
try (FileOutputStream fos = new FileOutputStream(newFilePath)) {
fos.write(bytev);
} catch (IOException e) {
e.printStackTrace();
log.error("写入图片时发生错误:" + e.getMessage());
}
//上传成功 进行数据库存储
OSSFile ossFile = new OSSFile();
// 文件名
fileName = CommonUtils.getFileName(fileName);
ossFile.setFileName(fileName);
ossFile.setUrl(newFilePath);
ossFile.setId(imageName);
iossFileService.save(ossFile);
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
String filepathandname = filePathCos + "/" + imageName;
MinioUtil.uploadByte(bytev, filepathandname); MinioUtil.uploadByte(bytev, filepathandname);
}
try {
String imgCon = path; String imgCon = path;
String imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\">"; String imgConVal = "<img class=\"wordImg\" style=\"width:100%;height:100%\" src=\"" + path + "\"></img>";
stringBuilder.append(imgConVal); stringBuilder.append(imgConVal);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
@@ -1374,7 +1477,9 @@ public class FileSpiltService {
HttpResponse res = client.execute(post); HttpResponse res = client.execute(post);
String results = EntityUtils.toString(res.getEntity()); String results = EntityUtils.toString(res.getEntity());
result = new File(results); if (StringUtils.isNotEmpty(results)) {
result = new File(results);
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jero.common.api.vo.Result; import com.jero.common.api.vo.Result;
import com.jero.common.constant.CommonConstant;
import com.jero.common.constant.enums.LanguageEnum; import com.jero.common.constant.enums.LanguageEnum;
import com.jero.common.constant.enums.ModuleEnum; import com.jero.common.constant.enums.ModuleEnum;
import com.jero.common.constant.enums.YesOrNoEnum; import com.jero.common.constant.enums.YesOrNoEnum;
@@ -139,6 +140,13 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
private String splitUrl; private String splitUrl;
@Value(value = "${jero.path.uploadCos}") @Value(value = "${jero.path.uploadCos}")
private String uploadCospath; private String uploadCospath;
@Value("${jero.uploadType}")
private String uploadType;
/**
* 拆分图片文件路径
*/
@Value(value = "${jero.path.splitImgPath}")
private String splitImgPath;
@Override @Override
public int addItemContent(Map<String, Object> parameter){ public int addItemContent(Map<String, Object> parameter){
@@ -556,7 +564,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
IPage infoPage = dao.getInfoPage(page, " " + "sar_file_split_menu.display_seq,laws_document_split.*", condition); IPage infoPage = dao.getInfoPage(page, " " + "sar_file_split_menu.display_seq,laws_document_split.*", condition);
//树形数据字典 //树形数据字典
List<SysCategory> categoryList = sysCategoryService.list(); List<SysCategory> categoryList = sysCategoryService.getList();
//过滤出树形字段 //过滤出树形字段
List<OnlCgformField> treeFieldList = fieldList.stream() List<OnlCgformField> treeFieldList = fieldList.stream()
.filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType())) .filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType()))
@@ -3278,7 +3286,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
} }
//树形数据字典 //树形数据字典
List<SysCategory> categoryList = sysCategoryService.list(); List<SysCategory> categoryList = sysCategoryService.getList();
//过滤出树形字段 //过滤出树形字段
List<LawsTag> treeFieldList = fieldList.stream() List<LawsTag> treeFieldList = fieldList.stream()
.filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType())) .filter(e -> FieldTypeEnum.TREE.getValue().equals(e.getFieldShowType()))
@@ -3459,15 +3467,27 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
@Override @Override
public void downLoadImgList(List<FileSplitValImgExportDto> allImgList, String fileNowPath) { public void downLoadImgList(List<FileSplitValImgExportDto> allImgList, String fileNowPath) {
for(FileSplitValImgExportDto imgExportDto : allImgList){ for(FileSplitValImgExportDto imgExportDto : allImgList){
String oldPath = uploadCospath + "/" + imgExportDto.getImgPath();
String newPath = fileNowPath + File.separator + imgExportDto.getImgName(); String newPath = fileNowPath + File.separator + imgExportDto.getImgName();
if (MinioUtil.doesObjectExist(oldPath)){ if (CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)) {
try (InputStream in = MinioUtil.download(oldPath);) { String oldPath = splitImgPath + "/" + imgExportDto.getImgPath();
try {
InputStream in = new FileInputStream(oldPath);
copyFile1(in, newPath); copyFile1(in, newPath);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
String oldPath = uploadCospath + "/" + imgExportDto.getImgPath();
if (MinioUtil.doesObjectExist(oldPath)){
try (InputStream in = MinioUtil.download(oldPath);) {
copyFile1(in, newPath);
} catch (IOException e) {
e.printStackTrace();
log.error(e.getMessage(), e);
}
}
} }
} }
@@ -3476,15 +3496,26 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
@Override @Override
public void downLoadFileList(List<OSSFile> allRelevFileList, String fileNowPath) { public void downLoadFileList(List<OSSFile> allRelevFileList, String fileNowPath) {
for(OSSFile fileExportDto : allRelevFileList){ for(OSSFile fileExportDto : allRelevFileList){
String oldPath = fileExportDto.getUrl();
String newPath = fileNowPath + File.separator + fileExportDto.getFileName(); String newPath = fileNowPath + File.separator + fileExportDto.getFileName();
if (MinioUtil.doesObjectExist(oldPath)){ String oldPath = fileExportDto.getUrl();
try (InputStream in = MinioUtil.download(oldPath);) {
if (CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)) {
try {
InputStream in = new FileInputStream(oldPath);
copyFile1(in, newPath); copyFile1(in, newPath);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }
} else if (CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)) {
if (MinioUtil.doesObjectExist(oldPath)){
try (InputStream in = MinioUtil.download(oldPath);) {
copyFile1(in, newPath);
} catch (IOException e) {
e.printStackTrace();
log.error(e.getMessage(), e);
}
}
} }
} }
@@ -132,7 +132,7 @@ jero:
# 签名密钥串(前后端要一致,正式发布请自行修改) # 签名密钥串(前后端要一致,正式发布请自行修改)
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
# 本地:local\Miniominio\阿里云:alioss # 本地:local\Miniominio\阿里云:alioss
uploadType: minio uploadType: local
#拆分图片展示地址 #拆分图片展示地址
splitUrl: http://localhost:8184/byd-structuredplugins-serve/sys/split/file/getImage?fileName= splitUrl: http://localhost:8184/byd-structuredplugins-serve/sys/split/file/getImage?fileName=
path: path:
@@ -148,6 +148,8 @@ jero:
exportExcelTempPath: D://opt//exportExcelTemp exportExcelTempPath: D://opt//exportExcelTemp
#仿宋体字体文件路径 设置 #仿宋体字体文件路径 设置
simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf
#拆分图片文件路径 设置
splitImgPath: D://opt//splitImgFiles/
shiro: shiro:
excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
#阿里云oss存储配置 #阿里云oss存储配置
@@ -122,7 +122,7 @@ jero:
# 签名密钥串(前后端要一致,正式发布请自行修改) # 签名密钥串(前后端要一致,正式发布请自行修改)
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
# 本地:local\Miniominio\阿里云:alioss # 本地:local\Miniominio\阿里云:alioss
uploadType: minio uploadType: local
#拆分图片展示地址 #拆分图片展示地址
splitUrl: http://srms.sinotruk.com/byd-structuredplugins-serve/sys/split/file/getImage?fileName= splitUrl: http://srms.sinotruk.com/byd-structuredplugins-serve/sys/split/file/getImage?fileName=
path: path:
@@ -137,6 +137,8 @@ jero:
exportExcelTempPath: D://opt//exportExcelTemp exportExcelTempPath: D://opt//exportExcelTemp
#仿宋体字体文件路径 设置 #仿宋体字体文件路径 设置
simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf
#拆分图片文件路径 设置
splitImgPath: D://opt//splitImgFiles/
shiro: shiro:
excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
#阿里云oss存储配置 #阿里云oss存储配置
@@ -131,7 +131,7 @@ jero:
# 签名密钥串(前后端要一致,正式发布请自行修改) # 签名密钥串(前后端要一致,正式发布请自行修改)
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
# 本地:local\Miniominio\阿里云:alioss # 本地:local\Miniominio\阿里云:alioss
uploadType: minio uploadType: local
#拆分图片展示地址 #拆分图片展示地址
splitUrl: http://39.98.140.126:8186/byd-structuredplugins-serve/sys/split/file/getImage?fileName= splitUrl: http://39.98.140.126:8186/byd-structuredplugins-serve/sys/split/file/getImage?fileName=
path: path:
@@ -147,6 +147,8 @@ jero:
exportExcelTempPath: D://opt//exportExcelTemp exportExcelTempPath: D://opt//exportExcelTemp
#仿宋体字体文件路径 设置 #仿宋体字体文件路径 设置
simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf simfangFontFilePath: D://opt//simfangFontFilePath//simfang.ttf
#拆分图片文件路径 设置
splitImgPath: D://opt//splitImgFiles/
shiro: shiro:
excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/** excludeUrls: /test/jeroDemo/demo3,/test/jeroDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
#阿里云oss存储配置 #阿里云oss存储配置