v2-9ef0a1a2950dc53c4c843da487c7a444.jpg
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表的用户名和密码字段。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code