Curso Spring Data JPA. 7: proyecciones personalizadas con interfaces, DTOs y records.

logo spring

Hasta ahora, las consultas que hemos implementado en el curso (derivadas y JPQL) retornan entidades o un único valor escalar (una cadena, un número, un lógico). Una limitación importante porque nos impide proyectar cualquier conjunto de datos. Asimismo, está el hecho, nada evidente, de que recuperar entidades tiene implicaciones que no siempre necesitamos asumir.

Seguir leyendo

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