eclipse / microprofile-fault-tolerance

microprofile fault tolerance
Apache License 2.0
131 stars 64 forks source link

@Timeout is not working with spring boot application #651

Open santoshbmath opened 1 month ago

santoshbmath commented 1 month ago

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 commented 1 month ago

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