adesso Blog
28.08.2024 By Jannis Kaiser
Bringing error messages safely to the frontend with Spring-Boot
Seit Spring Boot 2.3 werden detaillierte Fehlermeldungen aus Sicherheitsgründen standardmäßig unterdrückt. Das Frontend benötigt aber oft spezifische Fehlerdetails, um eine gute User Experience zu gewährleisten. In diesem Blogbeitrag zeige ich, wie du in Spring Boot Fehlerdetails sicher und gezielt an das Frontend weitergeben kannst - ohne die Sicherheit deines Projekts zu gefährden. In meinem Blog-Beitrag erfahrt ihr, wie ihr mit @ControllerAdvice, ErrorAttributes und Annotations eine maßgeschneiderte Fehlerbehandlung implementieren könnt.
Read more21.06.2024 By Murat Fevzioglu
Virtual Threads in Java
The development of the virtual threads, also known as Project Loom, began in late 2017. The final implementation brings with it two major changes. Virtual threads now support thread-local variables by default, and they are now monitored by default and observable via the new thread dump. This blog post introduces virtual threads and explains how they are used in Java.
Read more11.05.2023 By Björn Thalheim
ATDD on Spring Boot with Cucumber
Developers are quite familiar with unit testing, even with integrative approaches like @SpringBootTest. But many lack a clear design/development/test strategy and stick to their preferred programming language. Acceptance Test Driven Design (ATDD) is a structured approach to designing your tests and programme from the outside in, focusing on larger blocks of functionality rather than individual classes. This blog post shows how this works.
Read more