Skip to content

alaugks/spring-messagesource-db-example

Repository files navigation

Example: Custom Database Spring MessageSource

This example shows how to use the spring-messagesource-catalogue to implement a MessageSource from a database.

The database used in this example is SQLite.

Build and Run Docker Image

docker compose up -d

After a successful build, open the example in your web browser: http://localhost:8080

Custom Changes

If you want to make changes for testing, you have to restart the Docker image.

docker compose restart

Note

When you restart, the JAR file is rebuilt and the Tomcat is started. This can take a few seconds.