Validator configuration


Validator configuration method is exactly the same as interceptor, see the following code:

public class UserController extends Controller {
@Before(LoginValidator.class) // Configuration method and interception The implement is exactly the same
public void login() {
}
}