我正在尝试通过本机映像来编译spring引导应用程序,执行以下命令native-image --no-fallback -jar rest.jar都编译得很好,但在运行时我看到了一个异常
Exception in thread "main" java.lang.IllegalStateException: java.util.zip.ZipException: zip END header not found
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(Executa
我正在尝试从gradle为Springboot应用程序创建的fat jar中排除application.properties。我可以用maven来做。Gradle是该项目的首选构建工具。我尝试在'jar‘任务中使用exclude。它不起作用。还有其他建议吗? plugins {
id 'org.springframework.boot' version '2.2.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id '
我将Dockerfile放到了项目根目录中。 这意味着有一个./target目录,maven在其中生成一个spring-boot-web-0.0.1-SNAPSHOT.jar文件。 现在,我想将其添加到docker图像中: FROM centos
RUN yum install -y java # `-y` defaults questions to 'yes'
VOLUME /tmp # where Spring Boot will store temporary files
WORKDIR / #
我已经创建了简单的spring启动应用程序。然而,在启动该应用程序时,我得到了以下堆栈跟踪:
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1e4a7dd4: startup da