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=http%3a%2f%2f19eh833635.51mypc.cn%3a32061%2fLK%2ftoken_alibaba.do");
} catch (Exception e) {
e.printStackTrace();
}