会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
炫舞风中
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
21
下一页
2020年11月23日
nginx配置直接下载文件
摘要: 参考地址:https://blog.csdn.net/u011519550/article/details/104419016 location ~ ^/download { if ($request_filename ~* ^.*?\.(txt|doc|pdf)$){ add_header Con
阅读全文
posted @ 2020-11-23 16:55 炫舞风中
阅读(1219)
评论(0)
推荐(1)
2020年9月27日
SpringBoot 整合 Quartz 实现 JAVA 定时任务的动态配置
摘要: 参考地址:https://mp.weixin.qq.com/s/3_8yfRMzpJ5ZrRTiOOeP5w 一、maven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-star
阅读全文
posted @ 2020-09-27 14:35 炫舞风中
阅读(1435)
评论(0)
推荐(0)
2020年9月25日
在aop中获取request
摘要: 在开发中有时需要在aop中获取request对象 RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); HttpServletRequest request = (HttpServletR
阅读全文
posted @ 2020-09-25 17:59 炫舞风中
阅读(1562)
评论(0)
推荐(0)
gateway整合swagger2
摘要: 一、maven依赖 1、网关依赖(此处注册中心采用nacos) <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId
阅读全文
posted @ 2020-09-25 17:17 炫舞风中
阅读(5081)
评论(0)
推荐(0)
操作linux工具类
摘要: 一、maven依赖 <dependency> <groupId>ch.ethz.ganymed</groupId> <artifactId>ganymed-ssh2</artifactId> </dependency> <dependency> <groupId>commons-io</groupI
阅读全文
posted @ 2020-09-25 16:43 炫舞风中
阅读(176)
评论(0)
推荐(0)
2020年6月29日
为什么很多 SpringBoot 开发者放弃了 Tomcat,选择了 Undertow?
摘要: 转载:https://www.rongsoft.com/article/2020/03/052231201487/ 参考地址:https://www.jianshu.com/p/08cf875c5078
阅读全文
posted @ 2020-06-29 14:35 炫舞风中
阅读(193)
评论(0)
推荐(0)
zuul实现模块异常统一拦截返回
摘要: 参考地址:https://www.cnblogs.com/linjiqin/p/10202085.html zuul网关中根据过滤器的生命周期有以下类型的过滤器: a、pre: 这种过滤器在请求被路由之前调用。可利用这种过滤器实现身份验证、在集群中选择请求的微服务,记录调试信息等。 b、routin
阅读全文
posted @ 2020-06-29 11:54 炫舞风中
阅读(1385)
评论(0)
推荐(0)
spring sercurity+redis实现每次登陆生成不同的token
摘要: 在实际开发中,使用spring sercurity+redis生成并保存token会出现,不同客户端使用的时同一个token(都是存储在redis中),这将造成,其中一个客户端注销, 其他客户端也被注销了,极大的影响了开发效率,于是通过阅读源码,对token的生成做了修改,实现了每次登陆都是新的to
阅读全文
posted @ 2020-06-29 11:30 炫舞风中
阅读(2343)
评论(0)
推荐(1)
2020年6月3日
简明 Nginx Location Url 配置笔记
摘要: 转载:https://www.jianshu.com/p/e154c2ef002f 1、匹配语法 nginx的url匹配模式很强大,同时使用非常灵活,尤其是优先级的匹配,如果不寻找规律,不但很难掌握,而且容易犯晕。了解优先级之前,先看看匹配的配置语法,以及都有那些匹配模式。 匹配的语法还是很简单的:
阅读全文
posted @ 2020-06-03 16:12 炫舞风中
阅读(261)
评论(0)
推荐(0)
Spring Security Oauth2 如何鉴别Token是否有效
摘要: 转载:https://blog.csdn.net/zimou5581/article/details/101051416 重点 当oauth2请求(Authorization请求头中Bearer协议的 access_token)进行访问时,会进入OAuth2AuthenticationProcess
阅读全文
posted @ 2020-06-03 11:15 炫舞风中
阅读(5036)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
21
下一页
公告