Skip to content

Tag: spring-boot

springboot override controller methods

I have to ask because none of the answers I found can help me to solve my problem. I have controller I want to override its methods because one specific customer has specific logics, with controller that can have exactly same methods signatures or overriding methods with RequestBody extending the original req…

Use batch mode for dynamic listener

I am using a dynamic message listener. An example is shown below. I want to convert this to a batch listener (consume multiple messages at once). Is there a way to convert this, so that the listener consumes a list of consumer records? I am using spring-kafka with spring-boot. Thanks in advance Answer Impleme…

Is it possible to get Authentication as json response?

currently it returns String but I’d like to send response as json to client. it api check the jwt’s authentication. it appears email,nickname etc as string now. Answer Simply use org.json.simple.JSONObject create a jsonobject and put everything inside it as key value pair and return it to client a…

ProcessBuilder’s inputstream empty depending of OS

I made this simple piece of code to test ProcessBuilder: It works in Windows (returns python version of my system) but the same code in my macbook returns end of line, so basically empty. ¿This needs further configuration according to the OS? ¿why is this happening? Answer What error code are you getting? The…