Spring Security Oauth2.0 ajax post请求跨域的解决方法 最近项目中有单点登录的需求,用的是Spring Security Oauth2.0框架,授权的服务端已经写好,用postman测的也没问题。但是新建一个工程来获取token,就会报跨域的错。网上找了半... 2019年2月13日 ajax 浏览量:2,162 次 发表评论 阅读全文
使用python爬取网易云歌曲下载时为0KB的解决方法 歌曲的下载地址为http://music.163.com/song/media/outer/url?id=xxx 用urllib.request.urlretrieve方法下载总是为0KB。但是奇怪的... 2019年1月21日 爬虫 浏览量:1,936 次 发表评论 阅读全文
H5 移动端图片手势缩放和左右滑动的实现(pinchzoom+swipe) 最近项目的需求,需要在手机端查看图片时可以手势缩放和左右滑动。 左右滑动就是一个轮播,这个简单,项目中已经用swipe实现了。接下来就是缩放的问题了,在网上看了很多,最后决定用pinchzoom这个插... 2019年1月15日 html5 浏览量:2,964 次 发表评论 阅读全文
Spring Security Oauth2.0报错Authentication is required to obtain an access token (anonymous not allowed) Spring Security Oauth2.0报错 org.springframework.security.authentication.InsufficientAuthenticationExc... 2019年1月10日 Spring Security 浏览量:2,806 次 发表评论 阅读全文
Spring Security Oauth2.0里如何获取access_token? 这几天在研究如何使用Spring Security Oauth2.0。按照网上的例子踩了几个坑后,现在状况是调用/oauth/authorize接口可以正常返回授权码,用postman调用/oauth... 2019年1月9日 Spring Security 浏览量:3,680 次 发表评论 阅读全文
Spring Security Oauth2.0报错localhost将您的重定向次数过多 Spring Security Oauth2.0访问/oauth/authorize认证完成后返回到redirect_uri时报错localhost将您的重定向次数过多 debug看了下,出现这个问题... 2019年1月8日 Spring Security 浏览量:5,183 次 发表评论 阅读全文
Spring SecuritySpring Security Oauth2.0获取token报错invalid_client Bad client credentials Spring Security Oauth2.0获取token报错如下: { "error": "invalid_client", "error_description": "Bad client c... 2019年1月8日 浏览量:12,606 次 发表评论 阅读全文
Spring Security Oauth2.0 报错At least one redirect_uri must be registered with the client Spring Security Oauth2.0 报错OAuth Error error="invalid_request", error_description="At least one redi... 2019年1月7日 Spring Security 浏览量:2,756 次 发表评论 阅读全文
Spring Security Oauth2.0 报错java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id “null” Spring Security Oauth2.0 报错java.lang.IllegalArgumentException: There is no PasswordEncoder mapped fo... 2019年1月7日 Spring Security 浏览量:1,668 次 发表评论 阅读全文