cost 229 ms
使用`mvn gluonfx:sharedlib -Pios`时如何解决iOS Linker错误`ld: framework not found UIKit`? - How to solve iOS Linker Error `ld: framework not found UIKit` when using `mvn gluonfx:sharedlib -Pios`?

我在使用 Gluon 部署到 iOS 时出现 linker 错误。 按照gluon gluon-samples/HelloSharedLib中的说明和 Gluon文档中的说明进行操作。 我安装了以下版本。 我们有一个付费的 Apple Developer 帐户。 我可以使用mvn gluonfx: ...

Spring 启动 NativeImage 编译失败:“找不到目标方法:私有 org.springframework.boot.Banner” - Spring Boot NativeImage compilation fails on: "Could not find target method: private org.springframework.boot.Banner"

我在编译 Spring 启动应用程序时遇到问题。 TL;DR: Error: Could not find target method: private org.springframework.boot.Banner org.springframework.nativex.substitutio ...

在 Jersey Init、Spring Boot 3.0.1、Spring Boot Jersey Starter、GraalVM 22.3、Java 17 和 19 中出现异常 - Exception seen in Jersey Init, Spring Boot 3.0.1, Spring Boot Jersey Starter, GraalVM 22.3, Java 17 & 19

尝试在 Spring Boot 3.0.1、Spring Boot Jersey Starter、GraalVM 22.3、Java 17 & 19 上获取示例应用程序。Maven 本机映像创建成功,可执行文件启动,但在第一个采样端点的请求,似乎有一个错误。 因此,试图找出在本机可执行文件上 ...

docker 在 gitlab-runner 中构建失败但在本地工作:spring 使用 GraalVm 启动本机编译 - docker build fails inside gitlab-runner but works locally : spring boot native compilation with GraalVm

我制作了一个 Dockerfile 来使用 GraalVm 本机构建我的 spring 引导项目; 一切顺利。 这是Dockerfile 这在本地运行完美,但在 GitLab 跑步者中,我总是有同样的错误。 所以我决定在 maven 包装器中添加一些日志,这就是我所拥有的: 在我添加的日志中,我们可 ...

Spring Boot 3 本机可执行文件未选择配置文件特定的应用程序属性 - Profile specific application properties not picked by Spring Boot 3 native executable

我计划使用带有 Spring Boot 3 的本机映像。我的环境特定属性存储在 application.properties 文件中。 样本文件 我使用以下命令构建本机可执行文件 并使用以下命令运行可执行文件 在我看到的日志中 我是在做错什么还是 Spring Boot 3 本机映像不支持配置文件? ...

在 Spring Boot 3 中构建本机映像时在运行时提供系统属性 - Provide system properties at runtime when building native image in Spring Boot 3

我正在将现有项目升级到 Spring Boot 3 以作为本机映像运行。 我的应用程序需要一个自定义信任库来连接到 OpenLDAP,之前我曾经创建一个 uber jar,并在运行 jar 时提供信任库路径作为系统 arguments,如下所示。 要构建本机可执行文件,我需要使用本机图像插件 (or ...

Spring 3 本机编译,具有针对不同环境的多个 bean 实现 - Spring 3 native compilation with multiple bean implementations for different environments

我一直在评估 Spring Boot 3 对使用native-image进行本机编译的支持,到目前为止我印象非常深刻。 它有可能大幅减少我们的云支出。 我在文档中注意到,其中一个主要变化是“封闭世界”假设,这意味着像@ConditionalOn...这样的东西在构建时而不是编译时进行评估。 举一个常 ...

SpringBoot 3 AOT/GraalVM/Native:从 Windows 构建本机二进制文件以在 Linux 上运行 - SpringBoot 3 AOT/GraalVM/Native: Build native binary from Windows to run on Linux

关于 SpringBoot 3 和带有 GraalVM 的新 AOT Native 二进制文件的小问题。 我正在 Windows 机器上构建我的 java SpringBoot 3 应用程序(请不要判断!)以便在 Linux 主机上对二进制文件进行scp 。 我遵循了 GraalVM 安装指南,可以 ...

无法找到 class `com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer` 用于处理 `java.sql.Timestamp` 类型的值 - Failed to find class `com.fasterxml.jackson.databind.deser.std.DateDeserializers$TimestampDeserializer` for handlingvaluesof type `java.sql.Timestamp`

在 lambda 上通过本机映像运行时出现此错误; 在当地运行良好似乎在从数据库中获取时间戳(也在时间戳中)时出现错误。 graalvm:20.3.2 gradle: 7 java: 8 尝试在 reflection.Json 文件中添加以下内容 尝试添加 build.gradle ...

在 Spring Boot Gradle 插件中指定额外的 CA 证书绑定 - Specifying additional CA certificate bindings in the Spring Boot Gradle plugin

是否可以显示一些示例,说明如何在 Spring Boot Gradle 插件中指定其他 CA 证书绑定? 我尝试了以下方法: 和 我得到的错误是: 如果我删除上面的绑定行,错误就消失了,但是我遇到了 TLS 证书的另一个错误,这是预期的,因为我在一个公司 web 代理后面,该代理用我们公司内部的自己 ...

原生图像:如何将自定义文件添加到 Micronaut 3.7+ 中生成的资源配置.json - Native Image: How to add custom file to the generated resource-config.json in Micronaut 3.7+

在我的 Micronaut 应用程序中,我使用 Google 的LibPhoneNumber来解析和验证电话号码。 该库本身使用一些 ProtoBuf 文件,这些文件是 JAR 的一部分,例如 com/google/i18n/phonenumbers/data/PhoneNumberMetadat ...

GraalVM 原生图像运行时异常:class 被反射实例化但从未注册 - GraalVM native image runtime exception: class is instantiated reflectively but was never registered

运行生成的本机图像时出现此运行时异常: reflect-config.json(我尝试了所有可能的组合,甚至像下面那样用不工作): 原生镜像生成命令行: 版本信息:'GraalVM 22.3.0 Java 17 CE' Java 版本信息:'17.0.5+8-jvmci-22.3-b08' C 编 ...

如何构建运行多种架构的原生镜像 Docker 镜像? - How to build a native-image Docker image that runs multiple architectures?

我想创建一个多架构 Docker 图像,其中包含我的 Micronaut 应用程序的本机图像二进制文件。 运行./gradlew dockerfileNative时,Micronaut 使用多阶段构建生成Dockerfile以创建 Micronaut 应用程序的本机映像。 通常Dockerfile ...

GraalVM原生镜像-镜像构建报错,报'Error encountered while parsing io.netty.channel.nio.NioEventLoop.openSelector()' - GraalVM native image-image build error, report 'Error encountered while parsing io.netty.channel.nio.NioEventLoop.openSelector()'

原生镜像搭建环境: CentOS Linux release 7.9.2009 (Core) , graalvm-ce-java17-22.3.0 。 jar文件是Zulu 17.0.5+8 (也试过1.8)用NetBeans 15 on Windows 10.Netty依赖: 错误信息: 我在 ...

在 spring 本机构建中使用属性 Class 和 Map - Using Properties Class with Map within an spring native build

我尝试使用 GraalVM 和 Spring Boot 3.0 构建本机可执行文件。 当我使用包含 HashMap 的配置属性 class 时,这些应用程序的启动失败。 示例项目这个 class 包含一个简单的 map: 配置: 使用这个小型测试运行器: 作为“正常”java 应用程序启动,一切正 ...

使用 graalvm native-image 构建 Spring eureka 客户端 - Build Spring eureka client with graalvm native-image

很抱歉,因为这是我在堆栈溢出中的第一个问题,所以我希望我能正确解释这个问题...... 我正在使用spring boot 3.0.1和GraalVM CE 22.3.0和spring cloud 2022.0.0 我正在尝试使用 .netflix eureka 客户端构建我的服务的native-im ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM