Category "java"

Spring Boot Azure Multiple HttpSecurity

Is it possible to mix two authentication modes? Internal user: Azure ad External user: form authentication So far I have this: @EnableWebSecurity @EnableGlobalM

Gradle Build Takes Error But Application Runs Properly

In my project, i use basically microservice architecture, spring boot, spring cloud and gradle etc. When i tried to Gradle build, it takes error but when i trie

Android - mixing NavGraph with ViewPager2

I'm looking for the following design in my android app: I want the main screen to be a TabLayout with 3 tabs, and a ViewPager2. From each one of the 3 fragments

Can subgraph reference another named entity graph?

So I have found a few answers where one says it is possible to do so and the other says it is not. This kind of confused me because when I tried to do so - I fa

Spring doesn't load JavaTimeModule after Spring Update just load legacy one

I updated my project from spring boot 2.3.8 to 2.6.7 and I upgrade the jackson version to 2.13.2 I set the JavaTimeModule like this: @Bean @Primary public Obj

rabbitMQ sender with node-red

I am trying to connect node-red with rabbitMQ. The program will recive a text with the diet that the AI chose for each day. I made the rabbitMQ Configure java f

SpeechRecognizerListener giving Bundle[EMPTY_PARCEL] in onResults(Bundle results) majority devices which have android 11

I am Using speech = SpeechRecognizer.createSpeechRecognizer(getReactApplicationContext().getApplicationContext()); speech.setRecognitionListener(Voi

Problem with @ModelAttribute while sending POST method with multipart/form-data

I'm experiencing trouble with multipart data for a reason I don't understand. I can't deserialize a Map. Below is the Controller: @Override @PostMapping

Why does PIT fail to pick up my test class for my production class?

I am trying to make PIT run for a Spring/Maven-based Java project, but get strange results. My first runs show an overwhelming number of TIMED_OUTs for all sort

Spring drastically slows down score evaluation speed of Optaplanner solver

I have a following piece of code @SpringBootApplication public class ServerApplication { public static void main(String[] args) { SpringApplication.

Add to list elements Async in Java

I'm rather new to JAVA and have a problem similar to the one mentioned below, where I want to add elements to an array via async processing. However, the return

JWT token does not start with Bearer

i cant find a way to add the Bearer and on the localhost:8080 I get this This application has no explicit mapping for /error, so you are seeing this as a fallb

Is R2DBC only for Java applications?

Is the R2DBC specification only for Java applications? Because I only find Java examples on the Internet. And what about the thread-per-request problem? Doesn't

JAVA - Compare value in Excel file with files present in the folder

I have an excel file that I read through org.apache.poi, but I would like to read all the values ​​of column 1 and column 2. If the value in column

Adding logging for an object inside catch block

I want to handle exceptions in code in a way that during the processing of an object if an exception arises, then in the catch block I want to log the object th

"Repeats modules with scoped bindings or declarations .. with scopes: @javax.inject.Singleton" Dagger 2

I'm trying out the Hilt DI in my test project. I've the following module that's installed in SingletonComponent which in terms of Android is applicationComponen

PNG Image which received from c++ server, crashes on java android client

I'm developing android marine navigation client. The client should receive nautical chart images from c++ server. I'm sending data via socket. (from c++: Client

Change request body in ServerHttpRequestDecorator using AbstractGatewayFilterFactory - Webflux

Spring Boot Version: 2.5.1, Spring Cloud Version: 2020.0.3 Hello guys !!! I need your help ... My question is that I can't modify the request body in spring gat

Removing Variables

my work says to Remove the r, c and e variables from this how would I do this Rectangle r = new Rectangle(10 * iFrame, 10 * iFrame, 50, 50); r.draw(gcw); Ci

@Transactional on @Async methods in Spring Boot with shared object

I have a requirement where I have to save a lot of data into an Oracle DB. I want to use multithreading to speed things up. Everything is in a transaction. I ha