Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Criei projeto Spring Boot admin como foi configurado em aula, mas não esta rodando o programa

Main

package br.com.alura.sprinbootadmin;

import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Configuration;

import de.codecentric.boot.admin.server.config.EnableAdminServer;

@EnableAdminServer @Configuration @SpringBootApplication public class SprinBootAdminApplication {

public static void main(String[] args) {
    SpringApplication.run(SprinBootAdminApplication.class, args);
}

}

Pom

4.0.0 org.springframework.boot spring-boot-starter-parent 2.2.0.RELEASE br.com.alura sprin-boot-admin 0.0.1-SNAPSHOT sprin-boot-admin Demo project for Spring Boot

<properties>
    <java.version>1.8</java.version>
</properties>

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

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

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

e o properties

server.port=8081

Exception:

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.registerHandlerMethod(RequestMappingHandlerMapping.java:67) ~[spring-webmvc-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at de.codecentric.boot.admin.server.web.servlet.AdminControllerHandlerMapping.registerHandlerMethod(AdminControllerHandlerMapping.java:44) ~[spring-boot-admin-server-2.1.6.jar:2.1.6]
1 resposta
solução!

Oi Karoline, tudo bem?

Posta o stack completo do erro, por favor. Acredito que tenha mais informações para ajudar na identificação do problema

Abraço!