springboot+oauth2+springsecurity授权码模式授权服务端。采用数据库存储客户端信息,http://localhost:9000/oauth/authorize?response_type=code&client_id=client&redirect_uri=http://baidu.com&scope=all获取授权码,拿到code后通过post请求,http://localhost:9000/oauth/token,参数grant_type=authorization_code;code=ekE7OD ;client_id=client;client_secret=123456;scope=all;redirect_uri=http://baidu.com,获取access token,最后调用资源服务器客户端http://localhost:9001/user?access_token=10173470-1558-43ab-8a7f-6fef3173918a