datart更新到jdk17及springboot2.7.4版本执行调整

星期日, 2022-10-16 | Author: Lee | JAVA-and-J2EE, linux | 731 views

datart简介:
新一代数据可视化开放平台,支持报表、仪表板、大屏、分析和可视化数据应用的敏捷构建

对应文档地址:https://running-elephant.gitee.io/datart-docs/docs/

GIT地址:https://gitee.com/running-elephant/datart/releases
https://github.com/running-elephant/datart/releases

当前使用版本 datart-1.0.0-rc.1,即此刻master版本

尝试使用jdk17进行编译,使用SpringBoot2.7.4进行parent迁移,修改如下可以比较完美的升级过来.

1.更换 swagger版本,移除springfox相关maven

 
<dependency>
			<groupId>io.springfox</groupId>
			<artifactId>springfox-boot-starter</artifactId>
			<version>3.0.0</version>
		</dependency>

2.引入nashorn的maven,在jdk17中已经移除

<dependency>>
			<groupId>org.openjdk.nashorn</groupId>
			<artifactId>nashorn-core</artifactId>
			<version>15.4</version>
		</dependency>

3.BaseService 启动延迟加载accessLogService服务类

 
 @Autowired
    public void setAccessLogService(@Lazy AsyncAccessLogService accessLogService) {
        this.accessLogService = accessLogService;
    }

4.更改引用包

import org.openjdk.nashorn.internal.parser.TokenType;
import org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory;
import org.apache.calcite.sql.parser.impl.SqlParserImpl;

5.更换路由匹配模式

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

6.V2022.03.14__1.0.0.beta.3.sql初始化的sql里注释掉一行DELETE FROM `source_schemas`

-- DELETE FROM `source_schemas`
-- WHERE id IN
--      (SELECT temp.id FROM (
--                            SELECT id FROM `source_schemas`
--                            WHERE source_id IN
--                                  (SELECT source_id FROM `source_schemas` GROUP BY source_id HAVING count(*) > 1)
--                              AND id NOT IN
--                                  (SELECT max(id) FROM `source_schemas` GROUP BY source_id HAVING count(*) > 1)
--                        ) temp );

7.移除QRTZ相关配置及数据库中表(个人情况,此处非必须)

启用内存的定时任务模式即可,

或者接入xxl-job实现等,自行用redis实现轻量级分布式任务模式

Tags: ,

文章作者: Lee

本文地址: https://www.pomelolee.com/2336.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta