/ / Nedá sa spustiť ani jednoduchý jarný boot admin server s jarným zavádzacím systémom 2.0.0.RELEASE - spring-boot, spring-boot-admin

Nedá sa spustiť ani jednoduchý jarný server boot admin s jarným zavádzacím systémom 2.0.0.RELEASE - spring-boot, spring-boot-admin

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);
}
}

Pri vykonávaní jarného zavádzacieho servera s uvedením chyby ako: Akákoľvek pomoc by bola ocenená ...

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

odpovede:

2 pre odpoveď č. 1

Spring Boot 2.0.0 zatiaľ nepodporuje nástroj Spring Boot Admin. pozri: https://github.com/codecentric/spring-boot-admin/issues/668

Ak chcete použiť jarný spúšťač admin, mali by ste použiť staršiu verziu jarnej topánky.