Category "java"

Different Java Regex matching behavior when using UNICODE_CHARACTER_CLASS flag

I was testing the behavior of the Pattern.UNICODE_CHARACTER_CLASS flag for different punctuation characters and noticed that the matches for grave accent charac

Spring Cloud Contract with Wiremock - how to choose Scenario manually?

Im working in a project using Spring Cloud Contract and Wiremock to create integration tests. Everything was fine until we need to add multiple responses to the

java.sql.SQLException: Column 'serialnumber' not found. (spring boot)

I am writing to-do list web app with spring boot. I Have 2 entities: User (fields: userid (ID), username, password Item (fields: serialnumber (ID), task, userid

gRPC file upload detect content type of file on server

I am trying to do a file upload on via client streaming gRPC. Sending a file via streaming from client to server. I have implemented this code for server side w

Android AudioFocus with AudioTrack hardly works

I use AudioTrack to play some audio like GPS navigation does. Of course, I need to ask for an audio focus, but my ugly code doesn't make the trick as I expected

Immutables autogenerated for MongoDB throws "Can't find a codec for class Immutable.."

Problem Description. So I have an item that I want to use with MongoDB @Value.Immutable @Gson.TypeAdapters @Criteria.Repository interface Person { @Criteria

Preferred way to convert openapi 3 document (json or yaml) to markdown, adoc or any other static format

I try to find an easy way in java to convert an openapi 3 document (json or yaml) in a static format like markdown, html or adoc. Searching around I've found a

How to convert https url to File in Java?

I have an https url which is of String format. How can I convert it to File? I tried this but I'm getting error - URI scheme is not "file" public static File c

how to playback audio blob from Spring boot App

I am storing an audio blob(recorded voice) in angular and then I am calling a spring boot API to store it in azure blob storage as so: submit(){ const

how to format String to Date with format dd-mm-yyyy in java [duplicate]

I need some support. I desired convert a variable String to Date. The variable Date should be format dd-MM-yyyy. import java.util.Date; .

How should I reconfigure the arrow "->" to not print when done with with my pathing?

I'm trying to create an optimal path to collect as many 1's as I can but after I execute my code, I still have an arrow pointing to nothing as there are no more

Exact Change with Java

I am struggling with a homework assignment for a Java class. My code is listed below. I am having a problem with my dollars and quarters and outputting correctl

SpringBoot AWS Lambda application deployment issue-Class not found: com.abc.test.TestServiceHandler

Created a Spring boot application using Java 11 and trying to deploy in AWS Lambda. Encountering the following error in AWS Lambda. I see it is an issue with th

How do I get JaCoCo to work with Maven and JUnit 4.11?

I'm having trouble getting JaCoCo to work with Maven. I keep running into either Skipping JaCoCo execution due to missing execution data file. Or The parameter

Is it possible to send Uri using AIDL?

I have two apps, lets say AppClient and AppService. Those apps are communicating between each other using AIDL methods. Right now I would like to send Uri from

Parsing two objects into one

I've two objects objclient and objserver of the same type Object,(i.e. Dog, Cat..) when I receive objclient in my endpoint I need to replace its attributes with

Pass custom parameter to ConstraintValidator

I'm working on this springboot application where I need to do some validations on values passed from http call and I'm using class level validation as explained

Unable to load test file using bazel

I have the following project structure: project/ - app/ - test/ - java/ - Utils.java - resources/ - file.json - BUI

Mapped the Yaml configuration to Micronaut swagger open API security configuration

I have the below YAML configuration for OAuth OAuth: authorizationUrl: https://localhost:5001/connect/authorize tokenUrl: https://localhost:5001/connect/tok

Thread.currentThread() performance

I have Runnable queue that invokes one by one in specified thread. val queue = LinkedBlockingQueue<() -> Unit>() val queueThread = thread { while(tr