Spring Boot的最低版本与Spring Boot Admin 2.0.1兼容?
我有一个使用Spring Boot 1.5.8的项目,我想使用Spring Boot Admin的最新版本,但结果是:
Caused by: java.lang.ClassNotFoundException: org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 27 more
答案 0 :(得分:1)
您可以将spring boot admin 2.0与1.5.X和2.0集成在一起。请按照以下步骤进行Spring Boot 1.X
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>1.5.7</version>
</dependency>
spring.boot.admin.url: http://localhost:7777
spring.boot.admin.api-path: instances
要查看完整的项目,请检查我的project
https://github.com/codecentric/spring-boot-admin/issues/802 http://codecentric.github.io/spring-boot-admin/current/#monitoring-spring-boot-1.5.x
答案 1 :(得分:-1)
Spring Boot Admin 2.0.1至少需要Spring Boot 2.0.2