1995mars / Spring-security-6

0 stars 1 forks source link

Default Username In Security #1

Open PhanVanVien opened 2 weeks ago

PhanVanVien commented 2 weeks ago

Hi Bro, I am confused in your file SpringSecurity.pdf. In Page 5, username default of Spring Security is user not admin :<

1995mars commented 2 weeks ago

@PhanVanVien , Depending on the version, there may be differences. you can try using account "user". And To configure custom user accounts and passwords in Spring Security using the application.properties file, you can follow these steps:

  1. Open your application.properties file.

  2. Define the username and password properties for your custom user account. For example:

    # Define custom username and password
    spring.security.user.name=customuser
    spring.security.user.password=custompassword
PhanVanVien commented 2 weeks ago

Yes, I see. Thank you.