
微服务
id-whc
这个作者很懒,什么都没留下…
展开
-
SpringBoot Map参数校验 自定义异常返回自定义JSON错误&自定义错误注解
最近一直在做前后端分离的项目,前端提交的参数很多,用Bean来接前端还要写每个Bean的前缀,索性就直接传参了。我们在controller用一个Map接参。我看网上很少关于Map接参校验的,我就直接贴代码了。1、首先是自定义一个异常类package com.test.validator.exception;/** * @author MrWang * @version v1....原创 2019-02-20 15:13:44 · 4539 阅读 · 4 评论 -
SpringBoot 使用HTTPS服务,HTTP转HTTPS 阿里云域名证书
前两天在阿里云买了个域名,送给了我一个免费的证书,闲来无事搞一搞https。首先我们先要了解一下https是什么HTTP:是互联网上应用最为广泛的一种网络协议,是一个客户端和服务器端请求和应答的标准(TCP),用于从WWW服务器传输超文本到本地浏览器的传输协议,它可以使浏览器更加高效,使网络传输减少。 HTTPS:是以安全为目标的HTTP通道,简单讲是HTTP的安全版,即HTTP下...原创 2018-12-02 11:13:43 · 1302 阅读 · 2 评论 -
Spring Cloud Zuul(路由转发与过滤器)
Routing is an integral part of a microservice architecture. For example, / may be mapped to your web application, /api/users is mapped to the user service and /api/shop is mapped to the shop se...原创 2018-09-11 17:56:43 · 1780 阅读 · 0 评论 -
Spring Cloud Hystrix断路器
一、断路器简介A service failure in the lower level of services can cause cascading failure all the way up to the user. When calls to a particular service is greater than circuitBreaker.requestVolumeThresh...原创 2018-09-10 17:51:51 · 341 阅读 · 0 评论 -
Spring Cloud服务注册与消费(Eureka与Feign)分布式远程提供消费负载均衡
Spring Cloud Eureka:This project provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms. With ...原创 2018-09-06 18:09:32 · 715 阅读 · 0 评论