1.点击支付宝开发者平台https://open.alipay.com/platform/home.htm,然后点击步骤如图所示
2.按照开发文档一步步实现就可以了。
3.注意事项
1.获得auth_code链接入口和拼接参数scope
String scope = "auth_user,auth_base";try {
response.sendRedirect("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2018020202130289&scope="+scope+"&redirect_uri=https%3a%2f%2fblue-sea-697d.quartiers047.workers.dev%3a443%2fhttp%2f19eh833635.51mypc.cn%3a32061%2fLK%2ftoken_alibaba.do");
} catch (Exception e) {
e.printStackTrace();
}