## spring-security 1. 首先在pom文件中增加依赖 ```xml org.springframework.boot spring-boot-starter-security ``` 2. 可选项,在application.yml文件中配置默认的用户名密码 ```yaml spring: security: user: name: xiaoyan159 password: xiaoyan159062 roles: admin ```