Skip to content

appuio/example-spring-boot-helloworld

Folders and files

NameName
Last commit message
Last commit date
Oct 23, 2024
Feb 25, 2025
May 17, 2023
Jun 29, 2021
Dec 3, 2018
Oct 31, 2022
Jan 26, 2023
May 14, 2016
Jan 26, 2023
Mar 21, 2025
Mar 28, 2022
Feb 25, 2025
Jul 11, 2024
Apr 6, 2022

Repository files navigation

Spring Boot APPUiO Example

This is a Spring Boot Example Application

How to deploy

Create New OpenShift Project

oc new-project example-spring-boot

Docker Build on APPUiO - Create Application and expose Service

oc new-app https://github.com/appuio/example-spring-boot-helloworld.git --strategy=docker --name=appuio-spring-boot-ex

oc expose service appuio-spring-boot-ex

Image from DockerHub

Take the pre built image from Dockerhub

oc new-app appuio/example-spring-boot

Local Build and Test

Gradle

Build application with gradle:

./gradlew clean build

Run application with gradle:

./gradlew bootRun

Container

Build Image with buildah:

buildah bud -t example-spring-boot-helloworld .

Run Image with podman:

podman run -ti -p 8080:8080 -p 9000:9000 localhost/example-spring-boot-helloworld:latest

Endpoints

Configuration

Enable request logs by setting the value of the environment variable LOGGING_LEVEL_CH_APPUIO_TECHLAB_CONTROLLER_REQUESTDURATIONFILTER to DEBUG.