mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-19 19:46:56 +08:00
pref: 补充双重检查锁的 volatile 关键词
docs: 调整 Helio 脚手架的外链文案
This commit is contained in:
@@ -4,16 +4,16 @@ import cn.dev33.satoken.config.SaSsoConfig;
|
||||
|
||||
/**
|
||||
* Sa-Token-SSO 模块 总控类
|
||||
*
|
||||
*
|
||||
* @author kong
|
||||
*
|
||||
*/
|
||||
public class SaSsoManager {
|
||||
|
||||
/**
|
||||
* Sso 配置 Bean
|
||||
* Sso 配置 Bean
|
||||
*/
|
||||
private static SaSsoConfig config;
|
||||
private volatile static SaSsoConfig config;
|
||||
public static SaSsoConfig getConfig() {
|
||||
if (config == null) {
|
||||
synchronized (SaSsoManager.class) {
|
||||
|
||||
Reference in New Issue
Block a user