Wesley13 Wesley13
3年前
java常见的 http 请求库比较
java常见的http请求库有httpclient,RestTemplate,OKhttp,更高层次封装的feign、retrofit1、HttpClientHttpClient:代码复杂,还得操心资源回收等。代码很复杂,冗余代码多,不建议直接使用。2、RestTemplateRestTemplate:是Spring提供的用于访问
Wesley13 Wesley13
3年前
Java 调用RESTful接口的几种方式
前端一般通过Ajax来调用,后端调用的方式还是挺多的,比如HttpURLConnection,HttpClient,Spring的RestTemplate服务端代码如下:服务端接口请求的URL:http://localhost:8080/rest/user/getUser/xiaoming/18(https://www.oschina.net/a
Wesley13 Wesley13
3年前
AOP该怎么用?就这么用
!(https://oscimg.oschina.net/oscnet/ee87e76595d349dab5ba4934b574ef78.jpg)1理解AOP1.1什么是AOPAOP(AspectOrientedProgramming),面向切面思想,是Spring的三大核心思想之一(两外
Stella981 Stella981
3年前
Spring Cloud Greenwich 正式发布,Hystrix 即将寿终正寝。。
SpringCloudGreenwich正式版在01/23/2019这天正式发布了,下面我们来看下有哪些更新内容。生命周期终止提醒SpringCloudEdgwareEdgware版本将于08/01/2019正式退役,具体可以参考官方宣布:https://spring.io/blog/20
Stella981 Stella981
3年前
Spring5.0源码学习系列之浅谈Bean创建过程(六)
系列文章目录提示:Spring源码学习系列博客专栏(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fu014427391%2Fcategory_10493299.html)文章目录系列文章目录(h
Stella981 Stella981
3年前
Spring Cloud Eureka 全解 (5)
本文基于SpringCloudDalston.SR5(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcloud.spring.io%2Fspringcloudstatic%2FDalston.SR5%2F)自我保护机制关闭自我保护机制(默认是打开的):eu
Stella981 Stella981
3年前
Spring Data Redis 详解及实战一文搞定
SDRSpringDataRedis的简称。SpringDataRedis提供了从Spring应用程序轻松配置和访问Redis的功能。它提供了与商店互动的低级别和高级别抽象,使用户免受基础设施问题的困扰。SpringBoot实战引用依赖<dependency<groupIdor
Stella981 Stella981
3年前
SpringBoot2.x搭建Eureka
1说明1.全部配置基于1.8.0_1112.当前SpringBoot使用2.0.52创建项目在SpringBoot项目生成器(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fstart.spring.io%2F)中,输入Grou
Stella981 Stella981
3年前
Spring5.0源码学习系列之浅谈AOP代理创建(十)
前言介绍附录:Spring源码学习专栏(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fu014427391%2Fcategory_10493299.html)在上一章节(https://www.oschina.net/action/
Stella981 Stella981
3年前
Spring3核心技术之AOP配置
在Spring配置文件中,所有AOP相关定义必须放在<aop:config标签下,该标签下可以有<aop:pointcut、<aop:advisor、<aop:aspect标签,配置顺序不可变。!(http://static.oschina.net/uploads/img/201511/25003650_G0NP.jpg)●