Did I need to handle runtime exception in executorservice? I tried an example in spring boot web application, the code will still execute despite of exception
Here is the code:
@RestController
class WelcomeController {
    ExecutorService es = Executors.newSingleThreadExecutor();
    @GetMapping("/sayhi")
    public String sayHi() {
        es.submit(() -> {
            System.out.println("hello");
            int a = 0;
            if (10 / a == 1) {
            }
        });
        return "hi";
    }
}
 
     
     
    