在 Spring Boot Properties/Yaml 文件中使用环境变量
1、概览 {#1概览} ----------- 本文介绍了如何在 Spring Boot 的 `application.properties` 和 `application.yml` 中使用环境变量,以及如何在代码中使用这些属性。 2、在 application.properties 文件中使用环境变量 {#2在-applicationproperties-文件中使用环境变...
51工具盒子
1、概览 {#1概览} ----------- 本文介绍了如何在 Spring Boot 的 `application.properties` 和 `application.yml` 中使用环境变量,以及如何在代码中使用这些属性。 2、在 application.properties 文件中使用环境变量 {#2在-applicationproperties-文件中使用环境变...
<h2>1、概览 {#1概览}</h2> <p><a href="/spring-security/">Spring Security</a> 允许通过继承 <code>WebSecurityConfigurerAdapter</code> 类来自定义 HTTP Securi...
<h2>1、简介 {#1简介}</h2> <p>在本教程中,我们将了解如何把使用 Spring Boot 创建的 Java 应用作为 Docker 容器运行,具体来说,我们将在 Alpaquita Linux 上使用 Liberica JDK 来创建运行我们应用的 Docker 镜像。</p> <p>Liberica ...
 网关不支持传统 Servlet 容器 {#网关不支持传统-servlet-容器} ---------------------------------------- [Spring Cloud Gateway](/spring-clou...
<p>安全是一个需要深入理解的复杂主题。此外,使用 <a href="https://datatracker.ietf.org/doc/html/rfc6749">OAuth 2.0</a> 和 <a href="https://openid.net/specs/openid-connect-core-1_...
<p>在 "<a href="/spring-security-oauth2-tutorial-introduction/">Spring Security OAuth 2 教程 - 1:熟悉 OAuth 2 概念</a>" 中,我们学习了如何设置 Keycloak、创建 Realm、启...
<p>在第二章 "<a href="/spring-security-oauth2-tutorial-authorization-code-flow/">Spring Security OAuth 2 教程 - 2:授权码模式</a>" 中,我们学习了如何通过授权码模式(Authoriz...
在 "[Spring Security OAuth 2 教程 - 3:客户端凭证模式](/spring-security-oauth2-tutorial-client-credentials-flow/)" 中,我们学习了如何通过客户端凭证模式获取访问令牌(**access_token**)。在本文中,我们将了解如何使用 PKCE 授权码模式。 PKCE ...
<p>在 "<a href="/spring-security-oauth2-tutorial-authorization-code-flow-with-pkce/">Spring Security OAuth 2 教程 - 4:PKCE 授权码模式</a>" 中,我们学习了如何通过 P...
在之前的文章中,我们学习了使用 Web 浏览器、cURL 和 Postman 进行各种 OAuth 2.0 / OpenID Connect Flow。现在是时候学以致用了。 在使用像 [Spring Security](/spring-security/) 这样的安全框架实现基于 OAuth 2.0 / OpenID Connect 的 Security 时,许多活动都是由...