Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to pass parameter begin with #? [duplicate]

I have a rest Api with spring boot :

PageableResult<List<T>> search(HttpServletRequest request, HttpServletResponse response){

        Map<String, String[]> params = request.getParameterMap();
        log.info("params: {}", params);
        return getService().search(params);
    }

but when I use postman enter image description here

And In service function I have nothing when using code below.

String resultat = params.get("resultat");// I have nothing with resultat

So what happen with parameter begin by "#" symbol. How to solve it?

like image 895
YetDev Avatar asked Mar 19 '20 11:03

YetDev


1 Answers

You will need to use %23 to pass # as a character.

Here is a website to convert your keywords into necessary format.

like image 145
Aniket Sahrawat Avatar answered Nov 11 '22 07:11

Aniket Sahrawat