flowable 6.6.0 解決流程圖漢字亂碼

添加一個配置類,完事clean項目,重啓,清理瀏覽器緩存,清理以前生成的流程圖片html

FlowableConfigspring

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

@Configuration
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
      
    //www.fhadmin.org
    @Override
    public void configure(SpringProcessEngineConfiguration engineConfiguration) {
        engineConfiguration.setActivityFontName("宋體");
        engineConfiguration.setLabelFontName("宋體");
        engineConfiguration.setAnnotationFontName("宋體");
    }
}
相關文章
相關標籤/搜索