Jagat
Jagat

Reputation: 163

Unable to execute even simple spring boot admin server with spring boot 2.0.0.RELEASE

Pom.xml

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.0.RELEASE</version>
    <relativePath /> <!-- lookup parent from repository -->
</parent>


<dependencies>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server</artifactId>
    <version>1.5.4</version>
</dependency>

<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-server-ui</artifactId>
    <version>1.5.4</version>
</dependency>

@EnableAdminServer
@SpringBootApplication
public class SpringBootAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootAdminApplication.class, args);
    }
}

When executing the spring boot server with giving the error as:Any kind of help would be appreciated...

error java.lang.NoSuchMethodError:org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V

Upvotes: 1

Views: 680

Answers (1)

Ron Nabuurs
Ron Nabuurs

Reputation: 1556

Spring Boot 2.0.0 is not yet supported by Spring Boot Admin. See: https://github.com/codecentric/spring-boot-admin/issues/668

If you want to use spring boot admin you should use an older version of spring boot.

Upvotes: 2

Related Questions