Spring
Many Java teams already use Spring Boot for building applications. Spring integration with webforJ now lets you add webforJ's UI components to existing Spring applications, or use Spring's features in new webforJ projects.
Your Spring services, repositories, and configuration work as normal. Your webforJ components can @Autowired any Spring bean. Spring Data repositories connect directly to webforJ tables through SpringDataRepository. Development gets faster with automatic browser refresh from Spring DevTools and webforJ LiveReload.
The integration keeps both frameworks doing what they do best - Spring handles backend concerns while webforJ handles the UI.
Topics
📄️ Spring Boot
Generate a Spring Boot webforJ project with startforJ or Maven archetypes, or convert an existing WAR project to an embedded Tomcat JAR.
📄️ Routing
Inject Spring services and repositories into webforJ @Route classes through constructor injection while keeping a fresh instance per navigation.
📄️ Scopes
Use WebforjSessionScope, EnvironmentScope, and RouteScope to control bean lifetimes across sessions, browser tabs, and route hierarchies.
📄️ Spring Data JPA
Adapt Spring Data JPA repositories to webforJ Table and Repository components with SpringDataRepository, pagination, sorting, and Specifications.
📄️ Background Jobs
Run Spring @Async services from webforJ views and marshal progress and results back to the UI thread with Environment.runLater.