Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Timeout is not working with spring boot application #651

Open
santoshbmath opened this issue Oct 16, 2024 · 1 comment
Open

@Timeout is not working with spring boot application #651

santoshbmath opened this issue Oct 16, 2024 · 1 comment

Comments

@santoshbmath
Copy link

Hi,

I have a spring boot application which exposes some REST APIs and i am trying to put timeout for the APIs as below but its not timing out. Am i missing anything ?

          @Timeout(400)
	  @RequestMapping(value = "/orders/{orderNumber}", method = RequestMethod.GET)
	  public @ResponseBody ResponseEntity<Result> findByOrderNumber(@PathVariable("orderNumber") String orderNumber) {
                  ...
                  ...
           }
@Emily-Jiang
Copy link
Member

Spring does not support this and the annotations would be just ignored. You can ask Spring to support this specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants