在配置號eureka注冊中心后,啟動前端頁面時出現:
前端頁面:
FreeMarker template error (DEBUG mode; use RETHROW in production!): The following has evaluated to null or missing: ==> replica.key [in template "eureka/navbar.ftlh" at line 68, column 62] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!
后端控制臺出現:
freemarker.runtime : Error executing FreeMarker template freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> replica.key [in template "eureka/navbar.ftlh" at line 68, column 62]...
原因是當時我寫的yml文件中url寫錯
defaultZone:${eureka.instance.hostname}:${spring.application.name}:${server.port}/eureka
defaultZone: http://localhost:8761/eureka #單機版服務注冊中心
浙公網安備 33010602011771號