SpringCloud 如何包括Eureka服務器

2023-11-22 11:26 更新

要將Eureka服務器包含在您的項目中,請使用啟動器,其組ID為org.springframework.cloud,工件ID為??spring-cloud-starter-netflix-eureka-server。有關使用當前Spring Cloud版本Train設置構(gòu)建系統(tǒng)的詳細信息,請參見Spring Cloud項目頁面。

如果您的項目已經(jīng)使用Thymeleaf作為模板引擎,則Eureka服務器的Freemarker模板可能無法正確加載。在這種情況下,必須手動配置模板加載器:

application.yml。 

spring:
  freemarker:
    template-loader-path: classpath:/templates/
    prefer-file-system-access: false


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號