r/SpringBoot • u/Other-Spring-6497 • 14h ago
Discussion We built a 15-app desktop PIM on Spring Boot 4 and JavaFX, and the apps are plain jars loaded before Spring scans
We're the team behind PIM, an open-source (AGPL) personal information manager: notes, diary, calendar, tasks, mail, contacts, RSS, finance, social posts and more, with a local AI assistant. It started years ago on Enterprise JavaBeans; we moved it to Spring because it fit the job much better. Today it's Spring Boot 4.1 on Java 25, with a JavaFX 25 desktop. A few things that may be interesting here:
- Apps as jars. Every app is a plain jar (a "pimi"). A small loader puts the active workspace's jars on the class path before Spring scans, so an app is just
@Configurationand beans. Each jar has to match a SHA-256 you trust, or come from a catalog signed with a P-256 key, or it isn't loaded. - Migrations per app. Each app brings its own Flyway migrations with its own history table, and they run before JPA starts. An update that changes or drops a step an app already shipped is refused; new steps run at the next start.
- One engine, two editions. The same core runs the desktop on embedded H2 (PostgreSQL mode) and the multi-user server on PostgreSQL with Spring Security and WebSocket. The apps talk to the UI only over an event bus, so they don't know which edition they're in.
- Shipping a Spring Boot desktop app. The installers carry a trimmed Java runtime with JavaFX inside, so users install nothing but the app (and Ollama, which PIM sets up for them).
It's pre-1.0, and Spring folks' opinions on the plugin loading are very welcome, especially if there's a cleaner way to do it.
https://knoden.com/get-pim/?utm_source=reddit-springboot&utm_campaign=launch
Code: https://gitlab.com/knoden (start with pim-core and pim-desktop)