Skip to content

Commit 9fd4707

Browse files
committed
Spring Boot Admin Server GraalVM sample
1 parent b3188c4 commit 9fd4707

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Spring Boot Admin GraalVM sample application
2+
3+
## Build Project
4+
5+
```
6+
$ mvn clean package -Pnative
7+
```
8+
9+
## Build an OCI image that can be run with Docker
10+
11+
```
12+
$ mvn spring-boot:build-image
13+
```
14+
15+
## Running the example
16+
17+
```
18+
$ docker run --rm -p 8080:8080 docker.io/library/spring-boot-admin-sample-servlet-graalvm:3.0.1-SNAPSHOT
19+
```

spring-boot-admin-samples/spring-boot-admin-sample-servlet-graalvm/pom.xml

+5-4
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
<groupId>de.codecentric</groupId>
3333
<artifactId>spring-boot-admin-starter-server</artifactId>
3434
</dependency>
35-
<dependency>
36-
<groupId>org.springframework.boot</groupId>
37-
<artifactId>spring-boot-starter-web</artifactId>
38-
</dependency>
3935
<dependency>
4036
<groupId>de.codecentric</groupId>
4137
<artifactId>spring-boot-admin-starter-client</artifactId>
4238
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-web</artifactId>
42+
</dependency>
4343
<!-- Test -->
4444
<dependency>
4545
<groupId>org.springframework.boot</groupId>
@@ -156,6 +156,7 @@
156156
</profiles>
157157
<properties>
158158
<native-build-tools-plugin.version>0.9.18</native-build-tools-plugin.version>
159+
<maven.javadoc.skip>true</maven.javadoc.skip>
159160
</properties>
160161

161162
</project>

spring-boot-admin-samples/spring-boot-admin-sample-servlet-graalvm/src/main/resources/application.yml

+2-20
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,10 @@ management:
3232
spring:
3333
application:
3434
name: spring-boot-admin-3-graalvm
35-
config:
36-
import: optional:configserver:http://localhost:8888/
3735
jmx:
3836
enabled: true
3937
main:
4038
lazy-initialization: true
41-
boot:
42-
admin:
43-
ui:
44-
cache:
45-
no-cache: true
46-
resource-locations: file:/Users/ulrichschulte/Development/spring-boot-admin-dev/spring-boot-admin/spring-boot-admin-server-ui/target/dist/
47-
template-location: file:/Users/ulrichschulte/Development/spring-boot-admin-dev/spring-boot-admin/spring-boot-admin-server-ui/target/dist/
48-
cache-templates: false
4939

5040
---
5141
# tag::customization-external-views[]
@@ -60,14 +50,6 @@ spring:
6050
# context-path: test/
6151
client:
6252
url: http://localhost:8080
53+
instance:
54+
service-base-url: http://localhost:8080
6355
# end::customization-external-views[]
64-
---
65-
# tag::customization-view-settings[]
66-
spring:
67-
boot:
68-
admin:
69-
ui:
70-
view-settings:
71-
- name: "journal"
72-
enabled: false
73-
# end::customization-view-settings[]

0 commit comments

Comments
 (0)