美文网首页
activtii 流程图中文乱码

activtii 流程图中文乱码

作者: 超级笔记本 | 来源:发表于2020-06-10 14:44 被阅读0次

    问题:中文变成小方块,英文没事


    微信截图_20200604130141.png

    解决:添加配置文件,需要重新部署模型,已部署得不会改变

    @Configuration
    public class ActivitiConfig extends AbstractProcessEngineAutoConfiguration {
    
        @Autowired
        DataSource dataSource;
        @Autowired
        PlatformTransactionManager transactionManager;
        @Autowired
        SpringAsyncExecutor springAsyncExecutor;
    
        @Bean
        public SpringProcessEngineConfiguration springProcessEngineConfiguration() throws IOException {
            SpringProcessEngineConfiguration processEngineConfiguration = baseSpringProcessEngineConfiguration(dataSource, transactionManager, springAsyncExecutor);
            processEngineConfiguration.setActivityFontName("宋体");
            processEngineConfiguration.setLabelFontName("宋体");
            processEngineConfiguration.setAnnotationFontName("宋体");
            processEngineConfiguration.setEnableSafeBpmnXml(true);
            List<BpmnParseHandler> preParseHandlers = new ArrayList();
            processEngineConfiguration.setPreBpmnParseHandlers(preParseHandlers);
            return processEngineConfiguration;
        }
    }
    

    相关文章

      网友评论

          本文标题:activtii 流程图中文乱码

          本文链接:https://www.haomeiwen.com/subject/nlsgzhtx.html