随笔分类 -  Spring Boot

摘要:什么是长轮询(Long Polling)? 在 常规的 HTTP 请求 中: 客户端 发送请求到服务器。 服务器 处理请求并立即返回响应。 客户端 收到响应后,HTTP 连接关闭。 但如果服务器端数据 更新不频繁,客户端需要 不断发送请求(短轮询) 来获取最新数据,这种方式浪费资源,因为大多数请求都 阅读全文
posted @ 2025-03-04 10:57 又是火星人 阅读(541) 评论(0) 推荐(0)
摘要:## 开天辟地 - [Task Execution and Scheduling](https://docs.spring.io/spring-boot/docs/2.7.13/reference/html/features.html#features.task-execution-and-sche 阅读全文
posted @ 2023-07-03 15:54 又是火星人 阅读(185) 评论(0) 推荐(0)
摘要:一、SpringBoot 2.x的配置方法; 1、通过spring-boot-starter-cache导入依赖; 2、spring-boot-autoconfigureCache的CacheAutoConfiguration负责全局的cache管理,RedisCacheConfiguration负 阅读全文
posted @ 2021-06-06 11:13 又是火星人 阅读(1187) 评论(0) 推荐(0)
摘要:一、Aliyun Java Initializr https://start.aliyun.com/ 二、Spring JPA 开启原生SQL打印 application.properties spring.jpa.properties.hibernate.show_sql=true //控制台是否 阅读全文
posted @ 2020-06-08 22:02 又是火星人 阅读(278) 评论(0) 推荐(0)