refactor: 配置变量命名优化
This commit is contained in:
@@ -6,9 +6,9 @@ import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||
|
||||
/**
|
||||
* 密码编码器
|
||||
*
|
||||
*
|
||||
* @author haoxr
|
||||
* @author Ray.Hao
|
||||
* @since 2024/12/3
|
||||
*/
|
||||
@Configuration
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.youlai.boot.config.property.SecurityProperties;
|
||||
import com.youlai.boot.core.filter.RateLimiterFilter;
|
||||
import com.youlai.boot.core.security.exception.MyAccessDeniedHandler;
|
||||
import com.youlai.boot.core.security.exception.MyAuthenticationEntryPoint;
|
||||
import com.youlai.boot.core.security.extension.WeChatAuthenticationProvider;
|
||||
import com.youlai.boot.core.security.extension.WechatAuthenticationProvider;
|
||||
import com.youlai.boot.core.security.filter.CaptchaValidationFilter;
|
||||
import com.youlai.boot.core.security.filter.JwtValidationFilter;
|
||||
import com.youlai.boot.core.security.service.SysUserDetailsService;
|
||||
@@ -138,8 +138,8 @@ public class SecurityConfig {
|
||||
* 微信认证 Provider
|
||||
*/
|
||||
@Bean
|
||||
public WeChatAuthenticationProvider weChatAuthenticationProvider() {
|
||||
return new WeChatAuthenticationProvider(userService, wxMaService);
|
||||
public WechatAuthenticationProvider weChatAuthenticationProvider() {
|
||||
return new WechatAuthenticationProvider(userService, wxMaService);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,12 +52,12 @@ public class SecurityProperties {
|
||||
/**
|
||||
* 访问令牌有效期(单位:秒)
|
||||
*/
|
||||
private Integer accessTokenExpiration;
|
||||
private Integer accessTokenTimeToLive;
|
||||
|
||||
/**
|
||||
* 刷新令牌有效期(单位:秒)
|
||||
*/
|
||||
private Integer refreshTokenExpiration;
|
||||
private Integer refreshTokenTimeToLive;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user