Reason: this is a new feature in Java8 — the default /defender method. The methods of the HandlerInterceptorf interface are all decorated with default.

Related links Introduction to the new Java 8 feature, the Default method (Defender method)

This default modifier, unlike the default modifier for access, enables the interface’s methods to contain method bodies.

Indeed, without the prompt, it feels less convenient than before. There is no direct shortcut key directly out of the method that needs to be overridden, and be careful not to write the wrong method name.