![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
接口调用
zhangpeng2022
叩首问路,码梦为生
展开
-
关于HTTP调用接口的四种方式(post,get,delete,put)
package Utils;import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL;原创 2017-11-29 11:37:27 · 13121 阅读 · 0 评论 -
springboot+自定义注解+拦截器的写法
1、定义自定义注解的名称/** * 在需要验证openid的Controller的方法上使用此注解 */@Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)public @interface AccessRequired {}2、写自定义的拦截器,需继承HandlerInterceptor拦截器public c...原创 2018-03-05 21:14:05 · 1800 阅读 · 0 评论 -
springboot+自定义注解+AOP
1、自定义注解名称@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface SysLog { String value() default "";}2、配置切面@Aspect@Componentpublic class SysLogAspect { ...原创 2018-03-05 21:23:59 · 423 阅读 · 0 评论