Compare commits

...

3 Commits

Author SHA1 Message Date
机智平 5a4d248923
Pre Merge pull request !446 from 机智平/master 2026-01-06 05:54:34 +00:00
RuoYi e942847b89 修复Excel自定义格式样式污染问题 2026-01-06 13:54:27 +08:00
yanshuangping 6adeb32f5f fix:docker-compose nacos 3.0 启动失败 2025-12-24 15:17:31 +08:00
3 changed files with 23 additions and 1 deletions

View File

@ -7,11 +7,16 @@ services:
context: ./nacos context: ./nacos
environment: environment:
- MODE=standalone - MODE=standalone
- NACOS_AUTH_ENABLE=true
- NACOS_AUTH_TOKEN=5ZGQ5ZmJ5Lq75L2g5L2K5Yqo5ZyB5Lqf5Yqg5a+555qE5Y+P5Z2w5Y+R5LiA5LiK5ZaP5a6h5Y+R5LqU55CG5ZOB5ZuX
- NACOS_AUTH_IDENTITY_KEY=nacosKey
- NACOS_AUTH_IDENTITY_VALUE=nacosValue
volumes: volumes:
- ./nacos/logs/:/home/nacos/logs - ./nacos/logs/:/home/nacos/logs
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties - ./nacos/conf/application.properties:/home/nacos/conf/application.properties
ports: ports:
- "8848:8848" - "8848:8848"
- "8080:8080"
- "9848:9848" - "9848:9848"
- "9849:9849" - "9849:9849"
depends_on: depends_on:

View File

@ -30,3 +30,5 @@ nacos.core.auth.server.identity.key=serverIdentity
nacos.core.auth.server.identity.value=security nacos.core.auth.server.identity.value=security
nacos.istio.mcp.server.enabled=false nacos.istio.mcp.server.enabled=false
nacos.core.auth.plugin.nacos.token.secret.key=5ZGQ5ZmJ5Lq75L2g5L2K5Yqo5ZyB5Lqf5Yqg5a+555qE5Y+P5Z2w5Y+R5LiA5LiK5ZaP5a6h5Y+R5LqU55CG5ZOB5ZuX

View File

@ -1003,7 +1003,7 @@ public class ExcelUtil<T>
String separator = attr.separator(); String separator = attr.separator();
if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
{ {
cell.getCellStyle().setDataFormat(this.wb.getCreationHelper().createDataFormat().getFormat(dateFormat)); cell.setCellStyle(createCellStyle(cell.getCellStyle(), dateFormat));
cell.setCellValue(parseDateToStr(dateFormat, value)); cell.setCellValue(parseDateToStr(dateFormat, value));
} }
else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
@ -1033,6 +1033,21 @@ public class ExcelUtil<T>
return cell; return cell;
} }
/**
* 使
*
* @param cellStyle
* @param format
* @return CellStyle
*/
private CellStyle createCellStyle(CellStyle cellStyle, String format)
{
CellStyle style = wb.createCellStyle();
style.cloneStyleFrom(cellStyle);
style.setDataFormat(wb.getCreationHelper().createDataFormat().getFormat(format));
return style;
}
/** /**
* POI XSSFSheet * POI XSSFSheet
* *