Skip to content

Tag: spring-boot

Pass value with @Value to @RequestParam

So basically I have my rootFolderId in my application.properties and I need to get it in the Controller and use it in @RequestParam like : but I get the problem “Attribute value must be constant” .Is there any way to make it work ? Answer You can use property replacement in the @RequestParam field…

OAuth issue in API gateway

I am facing the OAuth issue, details are below: I am having two microservices: registration-service(https://github.com/choudharylakshyaveer/registration-service) student-service(https://github.com/choudharylakshyaveer/student-service) For these two I have added : cloud-config-server(https://github.com/choudha…

Spring Boot. Forward on RestController

I am implementing a mechanism for replacing short links. I need to forwarded request to another controller. I found examples how to do it in spring on models, but I don’t understand how to do it in RestControllers Example what i found (use models) Or maybe I’m looking in the wrong direction and I …

How to replace CXF base url in WSDLs

I’m using Apache CXF and Spring Boot to expose SOAP endpoints. Here’s the config: You can see that I expose one endpoint. It’s accessible at https://localhost:8081/daas/activate/activateGateway?wsdl: But this location=”https://localhost:8081/daas/activate/activateGateway is not valid b…

Batch update returned unexpected row count from update JAVA

When i try to add user throws next exception: This is my entity: } This is my service: Mapper for reg user: I found some strange things like: when i dont set field ROLE in mapper i dont recive this excep; i create my DB with dates, and when i have it’s with nanos in db, i dont recive exception,