Spring
Muchas equipos de Java ya utilizan Spring Boot para construir aplicaciones. La integración de Spring con webforJ ahora te permite agregar los componentes de UI de webforJ a aplicaciones Spring existentes o usar las funciones de Spring en nuevos proyectos de webforJ.
Tus servicios, repositorios y configuraciones de Spring funcionan como de costumbre. Tus componentes de webforJ pueden @Autowired cualquier bean de Spring. Los repositorios de Spring Data se conectan directamente a las tablas de webforJ a través de SpringDataRepository. El desarrollo se acelera con live reload, que actualiza el navegador a medida que cambias el código.
La integración mantiene a ambos frameworks haciendo lo que mejor saben hacer: Spring maneja las preocupaciones del backend mientras que webforJ maneja la interfaz de usuario.
Temas
Spring Boot
Generate a Spring Boot webforJ project with startforJ or Maven archetypes, or convert an existing WAR project to an embedded Tomcat JAR.
Enrutamiento
Inject Spring services and repositories into webforJ @Route classes through constructor injection while keeping a fresh instance per navigation.
Ámbitos
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.
Tareas en segundo plano
Run Spring @Async services from webforJ views and marshal progress and results back to the UI thread with Environment.runLater.
Pruebas
Test a webforJ Spring Boot app without a browser with @SpringBootTest and @WebforjTest, with injected beans and Spring Security on routes.
Already running Spring Boot?
Ask the team how webforJ fits into your existing Spring app.
Sigue aprendiendo
CortoCorto · YouTubeTurn an invoice photo into Java data with AI
ArtículoStarting a New Java Project: The Decisions That Shape the Stack
ArtículoYour Spring Boot app doesn't need a REST API for the UI
ArtículoReact with a Java backend: when it fits, and the all-Java option
ArtículoThe best web framework for Java in 2026, by job
ArtículoStruts to Spring Boot migration with webforJ
ArtículoPrimeFaces alternative: rich Java components, no XHTML