标签

 spring 

相关的文章:

本列表汇集了关于Spring框架的最新文章,涵盖安全性、认证、API保护及Java升级等主题,帮助开发者快速掌握Spring的核心功能与最佳实践。

Spring Vault 3.1.3 和 3.2.0-M1 发布

On behalf of the team and everyone who has contributed, I am pleased to announce that the Spring Vault 3.1.3 release is available now. Spring Vault 3.1.3 ships with several bugfixes. Spring Vault...

Spring Vault 3.1.3已发布,修复多个bug。3.2.0-M1是3.2.x系列的首个里程碑,新增IMDSv2和Github Token认证支持,预计5月发布3.2 GA版本,这是3.x系列的最后一次发布。

Spring Vault 3.1.3 和 3.2.0-M1 发布
原文英文,约200词,阅读约需1分钟。发表于:
阅读原文

Spring Modulith 1.4 RC1、1.3.5 和 1.2.11 发布

I am happy to announce the availability of Spring Modulith 1.4 RC1, 1.3.5, and 1.2.11. While the latter contain a few bug fixes and the usual dependency upgrades to the latest Spring Boot...

Spring Modulith 1.4 RC1、1.3.5 和 1.2.11 发布,带来性能提升、新特性和错误修复。新版本优化了事件发布注册和可观察性,Scenario API 默认只将非空集合视为成功状态转换。详细信息请查阅官方变更日志。

Spring Modulith 1.4 RC1、1.3.5 和 1.2.11 发布
原文英文,约200词,阅读约需1分钟。发表于:
阅读原文

Spring中的设计模式:让你的代码优雅且易于维护

Introduction Imagine you're building a house. Would you start hammering nails without a blueprint? Probably not. You'd use proven architectural designs to ensure the house is strong, scalable, and...

本文介绍了Spring框架中的设计模式,包括单例模式、工厂模式、代理模式、模板方法模式和观察者模式。这些模式有助于开发者构建结构清晰、可维护的应用程序,提高代码效率和安全性。

Spring中的设计模式:让你的代码优雅且易于维护
原文英文,约800词,阅读约需3分钟。发表于:
阅读原文
发表于:
阅读原文
原文英文,约400词,阅读约需2分钟。发表于:
阅读原文
原文英文,约100词,阅读约需1分钟。发表于:
阅读原文

Spring 授权服务器 1.5.0-RC1、1.4.3 和 1.3.6 现已发布

On behalf of the team and everyone who has contributed, it is my pleasure to announce the releases of Spring Authorization Server 1.5.0-RC1, 1.4.3 and 1.3.6. See the 1.5.0-RC1, 1.4.3 and 1.3.6...

Spring Authorization Server 1.5.0-RC1、1.4.3和1.3.6已发布。请查看发布说明以获取详细信息,并参考文档中的入门章节和示例以熟悉设置与配置。

Spring 授权服务器 1.5.0-RC1、1.4.3 和 1.3.6 现已发布
原文英文,约100词,阅读约需1分钟。发表于:
阅读原文

Spring Security 让你的应用崩溃的隐性规则

If you’ve ever added Spring Security to your project and immediately thought: "Why is nothing working?!" …you’re not alone. Spring Security is powerful, but its default behavior can be confusing....

Spring Security 的默认设置可能令人困惑,常见问题包括:所有请求返回401,需要逐步放宽安全设置;POST 请求因默认启用 CSRF 保护而失败,需要禁用;即使使用 @CrossOrigin,前端也可能被阻止,需要在 SecurityFilterChain 中配置 CORS。理解这些默认设置的限制至关重要。

Spring Security 让你的应用崩溃的隐性规则
原文英文,约300词,阅读约需1分钟。发表于:
阅读原文

Spring与HTTP缓存

How Spring’s Built-in Support Simplifies Http Caching Using HTTP caching results in avoiding re-fetching the same data, improving performance & response times. There are three approaches to...

Spring通过Cache-Control、Last-Modified和ETag三种方式简化HTTP缓存,提高性能。Cache-Control指定缓存时间,Last-Modified和ETag用于资源验证,ETag适合频繁变化的API。

Spring与HTTP缓存
原文英文,约600词,阅读约需2分钟。发表于:
阅读原文

使用MockMvcTester测试Spring控制器的实用指南

Spring Framework 6.2 introduced MockMvcTester to support writing AssertJ style assertions using AssertJ under the hood. If you’re using Spring Boot, the spring-boot-starter-test dependency...

Spring Framework 6.2引入了MockMvcTester,支持AssertJ风格的断言。在Spring Boot 3.4.0及以上版本中,无需额外依赖即可使用。本文探讨了MockMvcTester在REST API测试、异常处理和视图渲染等场景中的应用,提供流畅的API和自定义断言,使测试更简洁易读。

使用MockMvcTester测试Spring控制器的实用指南
原文英文,约1200词,阅读约需5分钟。发表于:
阅读原文