https://github.com/alaugks/spring-messagesource-db-example
Example: Custom Database Spring MessageSource
https://github.com/alaugks/spring-messagesource-db-example
database internationalization messagesource spring spring-boot
Last synced: 3 months ago
JSON representation
Example: Custom Database Spring MessageSource
- Host: GitHub
- URL: https://github.com/alaugks/spring-messagesource-db-example
- Owner: alaugks
- Created: 2024-09-24T15:09:29.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T15:02:21.000Z (3 months ago)
- Last Synced: 2025-02-24T16:24:02.792Z (3 months ago)
- Topics: database, internationalization, messagesource, spring, spring-boot
- Language: Java
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example: Database MessageSource for Spring
This example shows how to use the [spring-messagesource-catalog](https://github.com/alaugks/spring-messagesource-catalog) to implement a MessageSource from a database.
The database used in this example is SQLite.
## Build and Run Docker Image
```bash
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.
```bash
docker compose restart
```> [!NOTE]
> When you restart, the JAR file is rebuilt and the Tomcat is started. This can take a few seconds.## Related MessageSources and Examples
* [XLIFF MessageSource for Spring](https://github.com/alaugks/spring-messagesource-db-example)
* [JSON MessageSource for Spring](https://github.com/alaugks/spring-messagesource-json)
* [Example: XLIFF MessageSource for Spring](https://github.com/alaugks/spring-messagesource-xliff-example)
* [Example: JSON MessageSource for Spring](https://github.com/alaugks/spring-messagesource-json-example)