Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Spring boot admin não abre o front

Fiz o projetinho para mostrar a interface gráfica do Actuator por meio desse projetinho do spring-admin. Meu projeto se encontra aqui : https://github.com/Gustavo0/spring-boot-admin

A inicialização:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.4.RELEASE)

2019-09-19 20:35:59.332  INFO 5700 --- [           main] b.c.a.s.SpringBootAdminApplication       : Starting SpringBootAdminApplication on LAPTOP-R5DCRN5I with PID 5700 (C:\workspaces\cursos_alura\spring-boot-admin\target\classes started by gu_ox in C:\workspaces\cursos_alura\spring-boot-admin)
2019-09-19 20:35:59.332  INFO 5700 --- [           main] b.c.a.s.SpringBootAdminApplication       : No active profile set, falling back to default profiles: default
2019-09-19 20:36:00.548  INFO 5700 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8081 (http)
2019-09-19 20:36:00.568  INFO 5700 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-09-19 20:36:00.568  INFO 5700 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.17]
2019-09-19 20:36:00.667  INFO 5700 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-09-19 20:36:00.667  INFO 5700 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1293 ms
2019-09-19 20:36:01.114  INFO 5700 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-09-19 20:36:01.195  WARN 5700 --- [           main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
2019-09-19 20:36:02.095  INFO 5700 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2019-09-19 20:36:02.167  INFO 5700 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8081 (http) with context path ''
2019-09-19 20:36:02.167  INFO 5700 --- [           main] b.c.a.s.SpringBootAdminApplication       : Started SpringBootAdminApplication in 3.123 seconds (JVM running for 5.541)
2019-09-19 20:36:02.790  INFO 5700 --- [nio-8081-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-09-19 20:36:02.790  INFO 5700 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-09-19 20:36:02.795  INFO 5700 --- [nio-8081-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 5 ms

e o erro ao acessar http://localhost:8081/

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Sep 19 20:36:11 BRT 2019
There was an unexpected error (type=Not Found, status=404).
No message available

Cheguei a baixar o projetinho pronto disponibilizado na aula, mas o erro foi o mesmo.

3 respostas

Olá Gustavo, tudo bem?

Fiz o checkout do seu projeto do Github e quando acesso http://localhost:8081/#/applications é aberto a aplicação do spring boot admin normalmente, assim como é mostrado na aula.

solução!

Subi para a versão 2.1.6 e funcionou, mas com a 2.1.4 não rolou :(