代码整理

This commit is contained in:
lizhengwei 2026-04-03 17:08:29 +08:00
parent bac662cca3
commit 27b10d2292
4 changed files with 10 additions and 21 deletions

View File

@ -68,10 +68,11 @@
<!-- </dependency>--> <!-- </dependency>-->
<dependency> <!-- 不需要Gateway访问所以无需将服务注册到nacos-->
<groupId>com.alibaba.cloud</groupId> <!-- <dependency>-->
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> <!-- <groupId>com.alibaba.cloud</groupId>-->
</dependency> <!-- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
<!-- </dependency>-->
<!-- SpringBoot Web依赖 --> <!-- SpringBoot Web依赖 -->
<dependency> <dependency>
@ -113,10 +114,10 @@
<artifactId>dubbo-spring-boot-starter</artifactId> <artifactId>dubbo-spring-boot-starter</artifactId>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>org.apache.dubbo</groupId>--> <groupId>org.apache.dubbo</groupId>
<!-- <artifactId>dubbo-nacos-spring-boot-starter</artifactId>--> <artifactId>dubbo-nacos-spring-boot-starter</artifactId>
<!-- </dependency>--> </dependency>
<!-- JustAuth 的依赖配置--> <!-- JustAuth 的依赖配置-->

View File

@ -4,7 +4,6 @@ import lombok.Data;
import org.dromara.sso.enums.CaptchaCategory; import org.dromara.sso.enums.CaptchaCategory;
import org.dromara.sso.enums.CaptchaType; import org.dromara.sso.enums.CaptchaType;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
@ -14,7 +13,6 @@ import org.springframework.context.annotation.Configuration;
*/ */
@Data @Data
@Configuration @Configuration
@RefreshScope
@ConfigurationProperties(prefix = "security.captcha") @ConfigurationProperties(prefix = "security.captcha")
public class CaptchaProperties { public class CaptchaProperties {

View File

@ -2,7 +2,6 @@ package org.dromara.sso.properties;
import lombok.Data; import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
@ -12,7 +11,6 @@ import org.springframework.context.annotation.Configuration;
*/ */
@Data @Data
@Configuration @Configuration
@RefreshScope
@ConfigurationProperties(prefix = "user.password") @ConfigurationProperties(prefix = "user.password")
public class UserPasswordProperties { public class UserPasswordProperties {

View File

@ -32,16 +32,8 @@ dubbo:
retries: 0 retries: 0
# 初始化检查 # 初始化检查
check: false check: false
spring:
cloud:
nacos:
# nacos 服务地址
server-addr: http://127.0.0.1:8848
discovery:
# 注册组
group: DUBBO_GROUP
namespace: c5c00044-93e6-4e66-8060-3f39aa7ab82b
spring:
# Redis配置 SSO模式一和模式二使用Redis来同步会话 # Redis配置 SSO模式一和模式二使用Redis来同步会话
data: data:
redis: redis: