When approaching the design of integration and end-to-end tests, we have to decide what to do with the external systems that our application uses. The most typical case is databases. In addition, we must remember that creating test doubles objects defeats the purpose of this type of testing.
READ MORECategor铆a: English
Spring Framework: asynchronous methods with @Async, Future and TaskExecutor
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! 馃殌
Spring BOOT and JSP integration
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 MORESpring Framework: event handling
Event-driven systems allow multiple components to communicate with each other by sharing any information and, most importantly, without being directly related. The general idea is that certain components generate events or messages and others receive and process them, either synchronously or asynchronously.
READ MORE