I've below code which programmatically generates Flux using generate. Since the result is Flux I'm using concatMap to map result to Flux. The producer of Mono works based on throttling. If too many requests are sent in short period of time it...
I have a list of objects that I don't want to contain duplicates. Since the objects are expensive to create, I don't want to use a set, as that requires an object to be created first, before determining if it is already present in the set. Instead,...
I need to use below query to insert/update a row in a gbq table
MERGE INTO `target_table` AS target USING `source_table` AS source ON target.id = source.id WHEN MATCHED THEN UPDATE SET target.name = source.name, target.age = source.age WHEN NOT...
I am trying to fetch the postid from a Real-Time Database for my Android application. However, I am not able to do so and keep encountering an error inside my isLiked() function:
Can't pass null for argument 'pathString' in child() My Code:...
I wrote a working error handler for my webflux application. The problem arose when I tried to add the username of the logged Principal to exceptions... I see using the debugger that no context is found inside the ReactiveSecurityContextHolder, so...
For a school project I'm trying to use a JWT token as authentication, when the JWT token contains the role coach , it means that the user is authorized to do something.
I wrote the method that creates a String, and one that should decode it, but...
I make the constraint provider implementation class as component Spring and i inject it in the controller also i make a configuration bean implementation of ConstraintFactory and i inject it also in my controlleur.In the web service i fetch all...
To implement this, I've marked the open endpoints with permitAll, allowing access without authentication. However, when attempting to access the endpoints requiring authentication, even with a valid token, I consistently receive a 403 Forbidden...
I am currently working on a simple project using Java Spring. And to implement the signup and login features (user authentication and authorization), I have created an authentication and authorization filter using Spring Security and JWT together....
Hazelcast FencedLocks should be destroyed to avoid memory leaks but how/when should that be done when those locks are not known beforehand and created/allocated on demand (potentially by multiple processes)? Or are those locks not meant to be used...
I am trying to achieve the following:
Inspect a Java method's byte codes for tampering or manipulation.
I came across the term bytecode framework and online searches led me to ASM, Byte Buddy etc. I tried to get a ClassReader object of...
I work on a spring boot application with spring data and hibernate. I am using hexagonal architecture. I have 2 hexagons:
ConnexionManagment OrderManagment
Each hexagon interacts with the same table in the database called User. In the...
I am wondering if it is possible to create a single Spring Boot 3 application that:
serves HTML using Thymeleaf templates (some public, others restricted to logged in users) can be logged into using fx. Google or Facebook uses JWT for stateless...
Suppose I have two Spring profiles - A and B - and two Maven profiles - similarly A and B. Is there a solution to activate Maven A profile when the Spring application is launched with A profile? In other words, how to manage Maven profiles with...
I am working on a big java + kotlin codebase - it has services, activities, etc - which ultimately compiles to an Android apk. I am trying to improve performance of this app. I found that in Perfetto, it is showing a huge 1.4s binder transaction ,...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения