nacos修改用户名密码
nacos 2以后已经支持页面改密码了
pom依赖加上:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
打出字符串:
package org.me.api.common;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class PasswordEncoderUtil {
public static void main(String[] args) {
System.out.println(new BCryptPasswordEncoder().encode("123456."));
}
}
更改数据库中user
表的用户名和密码字段。