方法有两种: 实现org.springframework.core.Ordered接口,实现它的getOrder()方法; 给拦截器类添加@Order注解,该注解全称为:org.springframework.core.annotation.Order;