caused By:java.lang.ClassNotFoundException:org.springframework.boot.context.embedded.FilterRegistrationBean
This error is due to the Springboot version update, some classes of the path has changed,
Workaround :
Use a different Springcloud version
For example :
The version of Springboot I'm using
<Parent> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-starter-parent</Artifactid> <version>1.5.2.RELEASE</version> </Parent>
When I use the Springcloud version for
<Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-dependencies</Artifactid> <version>Brixton.release</version> <type>Pom</type> <Scope>Import</Scope> </Dependency>
An exception will occur.
Just change to
<Dependency> <groupId>Org.springframework.cloud</groupId> <Artifactid>Spring-cloud-dependencies</Artifactid> <version>Dalston.sr1</version> <type>Pom</type> <Scope>Import</Scope> </Dependency>
It's OK.
Build Eureka-server Exception ClassNotFoundException:org.springframework.boot.context.embedded.FilterRegistrationBean