https://blog.youkuaiyun.com/q975583865/article/details/90230898在此基础上的开发
参考博客
https://www.jianshu.com/p/a59cf853ea0f
https://www.jianshu.com/p/19059060036b
1.注意spring-boot-starter-parent的版本(2.0版本的改动比较多,测试失败。这里1.5成功)
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!--<version>2.0.0.RELEASE</version>-->
<version>1.5.15.RELEASE</version>
</parent>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
</dependency>