<dependency>
<groupId>com.alibaba.cloud</groupdId>
<artifactId>spring-cloud-starter-dubbo</artifactId>
</dependency>
<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency>
spring:
cloud:
nacos:
discovery:
server-addr:localhost:8848
dubbo:
scan:
base-packages: com.itheima.service.impl
protoools:
dubbo:
name: dubbo
port:-1
registry:
address:spring-cloud://localhost
默认密码为 sentinel /sentinel
-Dsentinel.dashboard.auth.username=sentinel
用于指定控制台的登录用户名为sentinel
;-Dsentinel.dashboard.auth.password=123456
用于指定控制台的登录密码为123456
;如果省略这两个参数,默认用户和密码均为sentinel
;-Dserver.servlet.session.timeout=7200