Easter79 Easter79
3年前
springboot整合spring retry 重试机制
当我们调用一个接口可能由于网络等原因造成第一次失败,再去尝试就成功了,这就是重试机制,spring支持重试机制,并且在SpringCloud中可以与Hystaix结合使用,可以避免访问到已经不正常的实例。但是切记非幂等情况下慎用重试一 加入依赖<!重试机制<depen
Stella981 Stella981
3年前
Spring Boot 2.x 学习专栏
1.SpringBoot2.0入门指南(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2Fxingyunblog%2Fp%2F8662960.html)2.SpringBoot2.0返回JSP页面实战(https://www.os
Stella981 Stella981
3年前
Spring Boot demo系列(十):Redis缓存
1概述本文演示了如何在SpringBoot中将Redis作为缓存使用,具体的内容包括:环境搭建项目搭建测试2环境RedisMySQLMyBatisPlus3Redis安装Redis安装非常简单,以笔
Stella981 Stella981
3年前
Spring Security 新特性 Lambda DSL 使用
\项目推荐:SpringCloud、SpringSecurityOAuth2的RBAC权限管理系统欢迎关注(https://gitee.com/log4j/pig)LambdaDSL概述SpringSecurity5.2对LambdaDSL语法的增强,允许使用lambda配置HttpSec
Stella981 Stella981
3年前
Spring Security OAuth 个性化token
个性化Token目的默认通过调用/oauth/token返回的报文格式包含以下参数{"access_token":"e6669cdfb6cd43feaf5cf91a65041382","token_type":"bearer","refre
Stella981 Stella981
3年前
Spring Boot上传文件+部署到Tomcat
1概述SpringBoot上传文件,根据官方uploadfile示例(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fspring.io%2Fguides%2Fgs%2Fuploadingfiles%2F)修改的,可以打成war放到服务器上(笔者使用的是Tomcat)
Stella981 Stella981
3年前
Spring Boot 外部化配置实战解析
来源:\宜信技术学院\(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcollege.creditease.cn%2F)作者:石建伟一、流程分析入口程序在SpringApplicationrun(String...args)方法中,
Stella981 Stella981
3年前
Spring mvc之拦截器介绍
一、拦截器介绍 (1)拦截器概念介绍        拦截器(Interceptor)是Spring的核心功能之一,它可以在用户请求Action的之前或之后进行一些业务处理。        很多从ASP.NET转过来的开发人员把它叫做过滤器。(2)拦截器方法执行顺序
Stella981 Stella981
3年前
Spring Cloud系列之微服务介绍
相信我,请认真读完,点开每一个链接,或许你才能真正了解什么是微服务?什么是分布式?什么是云计算?绝对没有多余!1微服务微服务架构是“新常态”。构建小型的、自包含的、随时可以运行的应用程序可以为代码带来极大的灵活性和灵活性。springboot的许多专门构建的特性使得在大!(https://oscimg.oschina.net/o
Stella981 Stella981
3年前
Spring 启动慢?提速利器 SpringFu 来了
!(https://pic3.zhimg.com/80/v28c45e4f18fea8b8ae2e3485393f9e45a_720w.jpg)函数是应用在Serverless世界里的一种极轻量形态,每个函数通常专注提供单一功能的服务。它们相互串联,井然有序,时而成群结队的出现,在完成既定任务后又很快的消失,此起彼伏,辉映成趣,将云的灵巧与飘逸发挥