Spring Framework: asynchronous methods with @Async, Future and TaskExecutor

logo spring

Spring Framework supports asynchronous execution of public methods of beans. They will be executed on their own thread without blocking the execution of the code that calls them. If you leverage this feature where appropriate, you will effortlessly boost the performance of your code. That’s the power of the @Async annotation that we will examine in this post. Make the most of it! 🚀

READ MORE

Spring BOOT and JSP integration

logo spring

Jakarta Server Pages (JSP), previously known as Java Server Pages, is the dynamic web page standard technology proposed by Java. Today it can be considered a relic of the past, as we have had template engines, such as Thymeleaf, that offer better capabilities for years. Moreover, the current trend is to create JavaScript clients with frameworks like Angular or React, which interact with REST APIs.

READ MORE

Testing Spring Boot: Docker con Testcontainers y JUnit 5

logo spring

Las pruebas de integración y end-to-end suelen plantear diversas dificultades y retos. Una de las cuestiones más habituales que tendremos que responder es qué hacer con los sistemas externos que nuestra aplicación utiliza. El caso más típico son las bases de datos. Además, no perdamos de vista que, en general, usar objetos dobles de tests desvirtúa el propósito de este tipo de pruebas.

Seguir leyendo

Spring BOOT: integración con JSP

logo spring

Jakarta Server Pages (JSP), antes conocida como Java Server Pages, es la tecnología de generación dinámica de páginas web que Java propone como estándar o especificación. A día de hoy se puede considerar un vestigio del pasado, pues hace años que contamos con motores de plantillas tales como Thymeleaf que ofrecen mejores capacidades. Además, la tendencia actual es la creación de clientes JavaScript, con Angular, React y similares, que interactúan con APIs REST.

Seguir leyendo