Skip to content

Commit 1f7933f

Browse files
committed
Documented the Spring Boot Admin Server GraalVM sample (might be addressing #2271 and #2163)
1 parent 56990ec commit 1f7933f

File tree

1 file changed

+8
-2
lines changed
  • spring-boot-admin-samples/spring-boot-admin-sample-servlet-graalvm

1 file changed

+8
-2
lines changed

spring-boot-admin-samples/spring-boot-admin-sample-servlet-graalvm/Readme.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ $ mvn clean package -Pnative
1313
## Build an OCI image that can be run with Docker
1414

1515
```
16-
$ mvn spring-boot:build-image
16+
$ mvn spring-boot:build-image -Dspring-boot.build-image.imageName=spring-boot-admin-sample-servlet-graalvm:latest
1717
```
1818

1919
## Running the example
2020

2121
```
22-
$ docker run --rm -p 8080:8080 docker.io/library/spring-boot-admin-sample-servlet-graalvm:3.0.1-SNAPSHOT
22+
$ docker run --rm -p 8080:8080 docker.io/library/spring-boot-admin-sample-servlet-graalvm:latest
2323
```
24+
25+
You should now be able to access Spring Boot Admin locally under `http://localhost:8080/`.
26+
27+
## Current limitations of Spring Boot's native image build feature
28+
29+
Keep in mind that currently not all Spring modules have built-in support. Therefore, you might need to tell the AOT compiler about the usage of reflection, dynamic proxies etc. There are several ways to deal with these concerns. A good starting point for specifying additional native configuration can be found in the official [Spring documentation](https://docs.spring.io/spring-framework/docs/6.0.0/reference/html/core.html#aot-hints).

0 commit comments

Comments
 (0)