Manually deserializing query params in Spring Boot
In my project we have a search endpoint. The search uses query params that we deserialize into an object, so it looks something like: @GetMapping("/search") public ResponseEntity<MySearchResults> doSearch(SearchCriteria criteria) { ... } I now have a case where I will get those same query params as a Map<String, String> and need to build that same SearchCriteria object from it. I do not have the ability to change the controller method that originally gets the query params. While I could just do a bunch of String manipulation do build that object, that's going to be inelegant and hard to mainta
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.