# springboot-oauth2 **Repository Path**: nicky1224/springboot-oauth2 ## Basic Information - **Project Name**: springboot-oauth2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-12 - **Last Updated**: 2024-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 运行测试 1.启动应用。 2.调用 http://localhost:8080/auth/send-sms?phoneNumber=1234567890 发送验证码。 3.使用 Postman 获取令牌: URL: http://localhost:8080/oauth/token Method: POST Auth: Basic Auth username:sms-client password:secret x-www-form-urlencoded: "grant_type": "password", "username": "1234567890", "password": "<验证码>" 4.使用令牌访问用户信息: Get URL: http://localhost:8080/user/info Header: Authorization: Bearer