Skip to content

Spring Rabbit MQ listener issues

My Configuration Class is below:- The DTO is :- The Snippet for publishing the message is:- And the snippet to listen the message is:- The issue is the logs here are not coming up but if I try with The snippet below then it works:- it does goes to the logs but how to get the TestDto in that case?

Spring boot cannot resolve view page

I am trying to run a simple web application with using Spring Boot but there is a problem with resolving view. When I go to http://localhost:8080/ it shows; Is there any missing property or library? Why it cannot resolve my html page? My application.properties; Answer If you use spring boot with some template…

No serializer found when serializing one Object

I’m trying to return an Object as JSON. Using the /user/id endpoint, I want to display a User based on his Id. When calling this controllerMethod I get the following Exception: My contollerClass looks like this: I checked if al fields have a public getter and tried various options with @JSONIgnoreProper…

Pc audio to android = noise

I have a problem with a project of mine. The project is a voice chat, where you should be able to talk to each other across devices. The project works fine when 2 pc clients is talking. When a pc …

Where can I get the LIB file import javax.xml.bind.DatatypeConverter;

I have the following line of code which is giving me a where can I find the library file for this import? Answer The module javax.xml.bind has been renamed and is also deprecated as of Java 9. To workaround you can add –add-modules java.xml.bind to javac compilation. As suggested here Or switch back to …

Access the keycloak API from postman

I have tried to access the keycloak API from the postman. but it is showing 400 bad request. I was calling api in the below format. In the headers I have set the content_type as application/x-www-form-urlencoded I am getting the response as below. Can any one help me.Any help will be appreciated. thanks in ad…