1. public @interface RequestMapping {
    2. String name() default "";
    3. //path和value都是指定的url路径
    4. @AliasFor("path")
    5. String[] value() default {};
    6. @AliasFor("value")
    7. String[] path() default {};
    8. //表示的请求方法,post、get、put、delete
    9. RequestMethod[] method() default {};
    10. //规定请求发送的参数
    11. String[] params() default {};
    12. //规定请求头发送的参数
    13. String[] headers() default {};
    14. //规定请求头的content-type
    15. String[] consumes() default {};
    16. //规定响应头的content-type
    17. String[] produces() default {};
    18. }

    image.png