nacos修改用户名密码

  开发

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表的用户名和密码字段。

LEAVE A COMMENT

Captcha Code