![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Sping Boot
文章平均质量分 75
今天只卖大白菜
今天只卖大白菜,懒散的程序员
码云:
https://gitee.com/caicaizai/projects
展开
-
SpringBoot之瘦身部署
目录:1.前言2.瘦身前的Jar包3.解决方案一、前言SpringBoot部署起来虽然简单,如果服务器部署在公司内网,速度还行,但是如果部署在公网(阿里云等云服务器上),部署起来实在头疼: 编译出来的 Jar 包很大,如果工程引入了许多开源组件(SpringCloud等),那就更大了。这个时候如果想要对线上运行工程有一些微调,则非常痛苦二、瘦身前的Jar包Tomcat在部署Web工程的时候,可以进行增量更新,SpringBoot也是可以的~SpringBoot编译出来的Jar包中,磁盘占用转载 2021-03-08 17:34:11 · 211 阅读 · 0 评论 -
springboot同时整合websocket和定时任务启动报错
在Spring Boot 启动类下加入了@EnableScheduling注解会启动错误Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-02-15 14:21:08.085 [main] ERROR org....转载 2019-02-15 14:23:52 · 1584 阅读 · 0 评论 -
MultipartFile的单元测试
MultipartFile接口有两个常用实现类,MockMultipartFile和CommonsMultipartFile。MultipartFile multiFile.....File destFile = new File("....../destFile")//转存文件到指定的路径。multiFile.transferTo(destFile );MockMultipartFi...转载 2019-02-18 14:58:34 · 11525 阅读 · 0 评论 -
SpringBoot 添加Referer拦截器
SpringBoot 添加Referer拦截器拦截器代码/** * Referer拦截器 */public class RefererInterceptor extends HandlerInterceptorAdapter { private final static Logger logger = LoggerFactory.getLogger(RefererInterce...原创 2019-05-24 10:25:31 · 4966 阅读 · 0 评论 -
SpringBoot shiro集成redis实现session共享
SpringBoot shiro集成redis实现session共享springboot整合shiro-session管理springboot使用shiro-整合redis作为缓存Shiro使用redis作为缓存(解决shiro频繁访问Redis)解决Shiro频繁访问Redis读取和更新session...转载 2019-07-19 10:20:49 · 4863 阅读 · 0 评论