登录GitHub,【Settings】--> 【Developer settings】-->【OAuth Apps】-->【New Oauth App】,然后填写应用信息。
注意:Authorization callback URL 填写【http://localhost:8080/connect/github】
获取Client ID 和Client Secret
根据上一步获得的Client Credentials替换你的app-id和app-secret
spring.social.github.app-id=YOUR_APP_ID
spring.social.github.app-secret=YOUR_APP_SECRET