Skip to content

Tag: spring-boot

antMatchers() is not working , and gives forbidden error

I have an end-point called authenticate , this endpoint is given to antMatchers(“/authenticate”) to skip authorization for this end-point, but it still checks for the authentication. code: Answer I have an update regarding the issue. In my case, I had a problem with a function singWith() that was …

Spring Rest Template always return 500

i use Rest Template to consume a rest web service, However i always get 500 although when I test with postman i get 200 Here is Rest template code : Postman response : RestTemplate Error : Answer Try passing the array in one parameter rsargs[] and not in two as you do.

Multiple ‘as-value’ properties defined

I want to create a ENUM which holds different statuses for possible database values and use them also to generate possible drop down statuses in FE: Full code: https://github.com/rcbandit111/Search_specification_POC/blob/main/src/main/java/org/merchant/database/service/businesscustomers/BusinessCustomersStatu…