mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-08-29 09:04:12 +00:00
update springcloud 2024
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -18,7 +18,7 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>17</java.version>
|
||||
<spring-boot.version>3.4.1</spring-boot.version>
|
||||
<spring-cloud.version>2023.0.5</spring-cloud.version>
|
||||
<spring-cloud.version>2024.0.0</spring-cloud.version>
|
||||
<spring-boot-admin.version>3.4.1</spring-boot-admin.version>
|
||||
<mybatis.version>3.5.16</mybatis.version>
|
||||
<mybatis-plus.version>3.5.10</mybatis-plus.version>
|
||||
|
@@ -30,7 +30,7 @@ public class SentinelCustomAutoConfiguration {
|
||||
private DiscoveryClient discoveryClient;
|
||||
|
||||
@Bean
|
||||
public void sentinelInit() {
|
||||
public Object sentinelInit() {
|
||||
if (StringUtils.isNotBlank(customProperties.getServerName())) {
|
||||
List<ServiceInstance> instances = discoveryClient.getInstances(customProperties.getServerName());
|
||||
String serverList = StreamUtils.join(instances, instance ->
|
||||
@@ -45,6 +45,7 @@ public class SentinelCustomAutoConfiguration {
|
||||
}
|
||||
// 手动初始化 sentinel
|
||||
InitExecutor.doInit();
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user