上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 63 下一页
  2022年10月13日
摘要: http请求方式-CloseableHttpClient import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.example.core.mydemo.http.OrderReqVO; 阅读全文
posted @ 2022-10-13 19:10 oktokeep 阅读(223) 评论(0) 推荐(0)
摘要: http请求方式-HttpClient import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.example.core.mydemo.http.OrderReqVO; import o 阅读全文
posted @ 2022-10-13 19:10 oktokeep 阅读(130) 评论(0) 推荐(0)
摘要: http请求方式-HttpURLConnection import com.alibaba.fastjson.JSON; import com.example.core.mydemo.http.OrderReqVO; import org.springframework.lang.Nullable; 阅读全文
posted @ 2022-10-13 19:09 oktokeep 阅读(111) 评论(0) 推荐(0)
摘要: http请求方式-OkHttpClient import com.example.core.mydemo.http.OrderReqVO; import okhttp3.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor 阅读全文
posted @ 2022-10-13 19:09 oktokeep 阅读(143) 评论(0) 推荐(0)
摘要: http请求方式-RestTemplate import com.alibaba.fastjson.JSON; import com.example.core.mydemo.http.OrderReqVO; import org.springframework.http.HttpEntity; im 阅读全文
posted @ 2022-10-13 19:08 oktokeep 阅读(60) 评论(0) 推荐(0)
  2022年10月11日
摘要: RequestBodyAdvice和注解方式进行统一参数处理demo @Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface 阅读全文
posted @ 2022-10-11 16:04 oktokeep 阅读(286) 评论(1) 推荐(0)
摘要: Aspect切面进行统一参数处理demo //导入 implementation('org.springframework:spring-aspects:5.3.22') import com.example.mytester.entity.ClassRoom; import com.example 阅读全文
posted @ 2022-10-11 16:03 oktokeep 阅读(231) 评论(1) 推荐(0)
摘要: Filter过滤器进行统一参数处理demo import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; i 阅读全文
posted @ 2022-10-11 16:03 oktokeep 阅读(110) 评论(1) 推荐(0)
摘要: Interceptor拦截器demo ##接口测试类 @RestController public class TestController { @RequestMapping(value = "/myInterceptorsTestUrl", method = RequestMethod.GET) 阅读全文
posted @ 2022-10-11 16:02 oktokeep 阅读(73) 评论(2) 推荐(0)
  2022年10月10日
摘要: idea为什么提示:Duplicated code fragment (**lines long) 原因是有相同的代码块在类里,可以把这部分代码封装成一个方法,提高代码可读性。 阅读全文
posted @ 2022-10-10 10:28 oktokeep 阅读(5024) 评论(0) 推荐(2)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 63 下一页