flowable 工作流生成的png图片汉字乱码

本文介绍了在Flowable工作流中遇到的流程图片中文乱码问题及其解决方案。通过在Spring Boot中配置指定字体类型为宋体,并确保操作系统包含宋体字体资源,可以解决在Linux等系统中可能出现的汉字乱码现象。此外,还详细阐述了Flowable自定义表单的创建、编辑、预览和数据管理等操作步骤。
摘要由CSDN通过智能技术生成

flowable 流程图片中文乱码

1.springboot添加配置类,指定字体类型为宋体

package org.fh.config;

import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;

/**
 * 说明:Flowable配置
 */
@Controller
@Configuration
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {

    @Override
    public void configure(SpringProcessEngineConfiguration engineConfiguration) {
        engineConfiguration.setActivityFontName("宋体");
        engineConfiguration.setLabelFontName("宋体");
        engineConfiguration.setAnnotationFontName("宋体");
    }

}

2. 操作系统字体库,有宋体字体资源。 windows操作系统基本都有宋体,linux等一般没有,需要自行添加

​-----------------------------------------------------------------自定义表单
28

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值