Questions tagged [spring-native]

Spring Native supports compiling Spring applications to native images with GraalVM.

Spring Native supports compiling Spring applications to native images with GraalVM.

iIt s new experimental Spring project https://github.com/spring-projects-experimental/spring-native , that was announce in 2021 https://spring.io/blog/2021/03/11/announcing-spring-native-beta and pinned as #1 Dependency option on https://start.spring.io/

146 questions
0
votes
1 answer

I want to find classes that implement a specific interface using spring native

I'm using spring native to build a native-image with graalvm, i want to find all classes that implements a specific interface I tried using Reflections but it didn't work, i used spring's ClassPathScanningCandidateComponentProvider too : It works…
0
votes
2 answers

Does spring native already support all components of spring?

Does spring native already support all components of spring? Or are there any other unsupported components? Is there a roadmap for spring native? Thank you
0
votes
1 answer

Spring Native custom name for generated executables

I want to change the name of the generated executables in Spring Native with Maven. Default is the from the pom.xml. If we want to specify the name of the resulting .jar file, we have an option to configure this with inside…
swissbuechi
  • 316
  • 2
  • 10
0
votes
0 answers

How to build Spring Native container in Google Cloud Build and use it in Cloud Run?

I have a Kotlin application that I'd like to build into a native executable with Spring Native. Locally it works fine but I want it to be builded with Google Cloud Build and Docker and then use the created image in my Google Cloud Run step. However…
0
votes
0 answers

SpringBoot Microservice with GraalVM Native Image without Spring Native Beta

I am exploring a possibilty to convert my existing Spring Boot facade services to be compatible with GraalVM image. I have tried to do a PoC with Spring Native (0.11). And it actually serves the purpose (solving cold-start problem). But I am…
0
votes
1 answer

GCP Cloud Functions with spring cloud function and spring native

I have been trying to deploy a GCP cloud function using Spring Cloud Function and Spring Native unfortunately it seems that GCP is blocking the AOT mode as shown in the photo "AOT mode disabled" Does anyone had success deploying a native spring…
0
votes
0 answers

Spring native generation with multi module spring boot application

having a spring boot multi module application. Wanted to convert in spring native exe on windows. Also need to support third party lib as well. I am having 5 modules in my spring boot application: Security (user management generates JWT and…
Abhishek
  • 1
  • 1
0
votes
1 answer

Spring Native with RestHighLevelClient not connecting to AWS OpenSearch

I have a Lambda configured and running on "Custom runtime on Amazon Linux 2". GraalVM is the runtime used for our application. When Lambda tries to make a connection with OpenSearch, it always results in "java.net.SocketTimeoutException: 60,000…
0
votes
0 answers

Does spring native support spring-boot-starter-data-elasticsearch dependency?

I am trying to build a spring native image with ‘spring-boot-starter-data-elasticsearch’ dependency which uses RestHighLevelClient to interact with elasticsearch. It turns out I always receive ‘connection refused’ exception. Any idea why this…
0
votes
1 answer

Spring Boot Application won't start: Attribute 'access' in annotation org.springframework.nativex.hint.TypeHint should be compatible

When trying to start my spring boot application I get this stack trace: 22:21:06.948 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader…
Peter
  • 1,844
  • 2
  • 31
  • 55
0
votes
1 answer

Spring native heap dump

I have a spring-boot web application which uses spring native /graalvm. Is it possible to get a heap dump of such kind of application? I tried to use: visual vm, jconsole, spring-actuator but did not succeed. These 3 options work fine for a non…
0
votes
1 answer

Why is @AuthenticationPrincipal null in spring-native image?

I'm injecting @AuthenticationPrincipal in a @RestController method. It works as expected in the JVM, but I get a NPE at security SpEL evaluation when running native image. Here is the method: …
ch4mp
  • 6,622
  • 6
  • 29
  • 49
0
votes
1 answer

Running Spring Native Application with Spring Data needs for startup about 2-3 seconds

I have created a Spring Boot Application with Spring Initializr. I use Spring Data with MySQL JDBC Connection. I created an docker image with gradle bootBuildImage and start this docker image with docker run --rm -p 8080:80…
Tobi
  • 507
  • 1
  • 5
  • 13
0
votes
1 answer

Spring Boot Docker Native image of Spring R2DBC application on Java 16 fails on unsupported methdod

I have a simple application built on top of org.springframework.boot:spring-boot-starter-parent version 2.5.4-SNAPSHOT and some derived…
Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183
0
votes
0 answers

How to configure native spring-boot app with hibernate?

I am trying to build native image of a spring-boot app using Hibernate (spring-data-jpa entities and repositories). From what I understood of this sample, it should be just a matter of adding enhance goal from hibernate-enhance-maven-plugin to my…
ch4mp
  • 6,622
  • 6
  • 29
  • 49
1 2 3
9
10