在配置springboot + springCloud完成后熔恢,啟動時會報錯:
屏幕截圖(126).png
報錯信息為:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [eureka/status], template might not exist or might not be accessible by any of the configured Template Resolvers
這是因為eureka的默認(rèn)模板為freemaker 而不是 thymeleaf
這就需要在application.yml中配置:
spring:
freemarker:
prefer-file-system-access: false
添加完成后重啟即可脐湾。