Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions 09-spring-boot-ehcache-xml/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/target
/frontend

### STS ###
/.apt_generated
/.classpath
/.factorypath
/.project
/.settings
/.springBeans

### IntelliJ IDEA ###
/.idea
/*.iws
/*.iml
/*.ipr

### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
27 changes: 27 additions & 0 deletions 09-spring-boot-ehcache-xml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Overview

This sample integrates together:

* Spring Boot 3
* Ehcache 3
* AOP
* Metrics
* Prometheus
* Actuator
* Vaadin

It accesses an online service for currency conversion and simulate some additional latencies.

It also creates 2 caches (heap only), with listeners and TTL of 60 seconds.

## How to run this sample:

1. Requires: **Java 17**
2. You must first get an API key at https://freecurrencyapi.com/
2. Build: `./mvnw package`
3. Run: `./target/spring-boot-ehcache-0.0.1-SNAPSHOT.jar --app.freecurrencyapi.key=<your-api-key>`
4. Open your browser at http://localhost:8080/
5. Execute some currency conversion
6. Look at the logs below
7. Look at Spring Boot actuator endpoints at http://localhost:8080/actuator to see the metrics and caches and verify
that the caching works.
308 changes: 308 additions & 0 deletions 09-spring-boot-ehcache-xml/mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading