1. spring security默认用户名和密码
spring security默认用户名:user
spring security默认密码:
在控制台打印出来,如下:
Using generated security password: 1dfdgki3-q234-76hj-6h7l-1re87f546r646
源码里面:
2.spring security在yml文件配置用户名和密码
spring:
security:
user:
name: nba
password: 123