Skip to content

Doris 查询 分离lib部署 字段映射错误 #472

Description

@yyblove

Doris 版本 3.x
JDK 21
mybatis-flex 版本 1.10.4 试了 1.10.2 1.10.1 的均有这个问题
gradle 8.5

使用gradle进行项目构建
如果直接 打一个 bootJar 可以内容是正确的。
如果分离 lib 之后,针对部分字段 比如 (doris: user_name, java类 userName) 需要转换的字段,无法进行赋值,导致返回null。

不分离lib配置

jar {
    enabled false
}

bootJar {
    enabled true
}

分离lib包的

tasks.register('copyJar', Copy) {
    def libs = project.layout.buildDirectory.dir("libs").get().dir("lib").getAsFile();
    delete libs
    from configurations.runtimeClasspath
    into libs
}

jar {
    enabled false
}

bootJar {
    enabled true
    includes = ['**/*.class', 'templates/**/*.*']
    dependsOn copyJar

    manifestContentCharset 'UTF-8'
    metadataCharset 'UTF-8'

    manifest {
        attributes 'Class-path': configurations.runtimeClasspath.collect { 'lib/' + it.getName() }.join(' ')
    }
}

请问各位大佬有没有遇到?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions