
Spring
文章平均质量分 88
诸葛百家
当你发现自己的才华撑不起野心时,就请安静下来学习吧
展开
-
Spring Boot 2.7.3整合Swagger启动失败Failed to start bean ‘documentationPluginsBootstrapper‘
Spring Boot 2.7.3整合Swagger启动失败Failed to start bean 'documentationPluginsBootstrapper'原创 2022-09-06 17:53:06 · 27059 阅读 · 27 评论 -
springboot 搭配的 的 druid最新版本 警告 discard long time none received connection. 问题
在使用了新版的 druid-1.2.5 以后,日志中一直在报 Error,内容是 discard long time none received connection. , jdbcUrl : 巴拉巴拉,但程序运行并没有受到影响,但看着一大片错误就浑身难受,我决定去他们的源码里看看到底是怎么回事。网上搜索到的解决方案是回退到1.1.22可解决,但我觉得这样的解决方案有点傻X,不去想解决问题,而是倒车躲避。看看源码是谁在报错进到源码搜索这句「discard long time ...转载 2021-04-15 17:26:31 · 46674 阅读 · 11 评论 -
Spring Mvc 文件下载Demo
传统代码:@RequestMapping("file/download") public void fileDownload(HttpServletResponse response, HttpServletRequest request) { response.setCharacterEncoding("utf-8"); response.se...原创 2016-06-24 10:25:21 · 259 阅读 · 0 评论 -
转:SpringMVC + MyBatis + Mysql + Redis(作为二级缓存) 配置
项目环境: 在SpringMVC + MyBatis + Mysql。Redis部署在Linux虚拟机。1、整体思路参考Ehcache实现MyBatis二级缓存代码(Maven引用对应jar查阅)使用Spring管理Redis连接池模仿EhcacheCache,实现RedisCache2、pom.xml中加入Maven依赖<!-- spring-red...原创 2016-07-07 12:53:23 · 302 阅读 · 0 评论