网上看了关于使用Spring Cloud Security OAuth2搭建授权服务的文章,自己尝试了一下,
会抛出异常,写不知道写博客的兄弟们有没有亲自试过。异常如下:
class not found exception:org.springframework.context.event.GenericApplicationListener
.......
解决办法就是在pom.xml中加入:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.2.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>