Questions tagged [get-mapping]

The tag has no usage guidance.

1
vote
2answers
38 views

Inside @GetMapping mapped method is it possible to fetch relative URL defined in value attribute

In Spring web service, I have controller having multiple URL mapped method to handle requests. I want to map 2 urls to a single @GetMapping method like below:@GetMapping(value={"ex/{status}", "ex/...
0
votes
1answer
123 views

Spring Unit testing rest controller

What's the best and easiest solution to test this sample get mapping's? Could you show some easy example? @GetMapping("/")public List<UserDto> get() {return userService.getUsers()....
0
votes
1answer
442 views

GetMapping in Spring boot to exclude specific path variable match

I have a controller with the following GetMapping@GetMapping(value="/dawson/v1/{dataType}", produces=MediaType.APPLICATION_JSON_UTF8_VALUE)public ResponseEntity<String> respondWithData(@...
1
vote
1answer
260 views

GetMapping “produces” works even though doesn't match accept header

IntroThere is a @GetMapping attribute, as the following in one of our projects:@GetMapping(path="/", produces=SaConstants.SA_MEDIA_TYPE)public HttpEntity<Resource<Home>> get(...

angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,