Questions tagged [get-mapping]

67 questions
0
votes
3 answers

How i can use different url with same method in Controller With @GetMapping?

it unable to run on both URL @GetMapping(value= {"/durationtrend/{moduleId}","/durationtrend/{moduleId}/{records}"},produces=MediaType.APPLICATION_JSON_VALUE) public List
0
votes
0 answers

Set vs List in REST One To Many

I have one to many relationship. If in class Customer I write List: private List order; my GetMapping will work fine. But I want to use best practices and I write Set instead of List: private Set order; In result I have…
vesnaves
  • 45
  • 1
  • 5
0
votes
0 answers

Trying to execute simultaneously two REST web services via RestTemplate spring MVC

I'm trying to execute two (or more) REST web services at the same time with restTemplate to improve performance so i want them to be executed simultaneously, how can i do this with spring MVC ? I mean instead of first webservice + second webservice…
slama
  • 85
  • 2
  • 11
-1
votes
1 answer

Not Understanding GetMapping()

I'm working with a Spring Boot application on a JBoss server. I'm new to java, spring and JBoss. I was working through a session management example from https://www.javainuse.com/spring/springboot_session I ran this code: package…
Kmus
  • 11
  • 4
-1
votes
1 answer

I don't want to remove trailing spaces while passing an array as request param in API endpoint. How should I do that?

I am creating an array of strings in angular and am sending that array to an API endpoint as a request parameter. Below is the code for that. However, when the list is passed in java API endpoint the trailing spaces are removed and I do NOT want to…
student
  • 39
  • 1
  • 7
1 2 3 4
5