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.