Questions tagged [get-mapping]
67 questions
1
vote
3 answers
How to make Get Request with Request param in Postman
I have created an endpoint that accepts a string in its request param
@GetMapping(value = "/validate")
private void validateExpression(@RequestParam(value = "expression") String expression) {
System.out.println(expression);
//…

Bhumika
- 45
- 2
- 10
1
vote
1 answer
Deserialize Params into object
I have a URL abc.com/loc/lat=90.6&long=44.6&sf='random' here lat and long are required and sf is an optional param. I have created a class with these three as data members, how can I deserialize those params into that class object?

Aman Saxena
- 13
- 4
1
vote
1 answer
Spring MVC @GetMapping @ModelAttribute percent(%) symbol gives null value
Here is my controller:
@CrossOrigin(origins = "http://localhost:3000")
@RestController
@RequestMapping("/api/v1/employees")
public class EmployeeController {
@Autowired
private EmployeeService employeeService;
@GetMapping()
public…

Brian Antiqueña
- 188
- 11
1
vote
1 answer
Build Complex JSON payload from java classes
I would like to create following json payload from the java classes. Only one condition is there, Subgroup1 can be null, meaning group may/may not have subgroup1. Not sure how can it be done. Any help would be highly appreciated. Thanks in advance!…

Divya
- 13
- 1
- 5
1
vote
1 answer
Controller not processing Path Variable correctly - Spring boot
I have a list of customers who have some orders and I display them all in a table.
I have added a button in order to delete each order if desired.
This is the table of how I display them.