Fixing eureka starter

This commit is contained in:
Ryan Baxter
2018-07-02 19:58:48 -04:00
parent 5238a3e82a
commit bc790633ac
2 changed files with 5 additions and 3 deletions

View File

@@ -16,12 +16,12 @@
</dependencyManagement>
<dependencies>
<dependency>
<groupId>{@= groupId @}</groupId>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
<groupId>org.springframework.cloud</groupId>
<artifactId>{@= eurekaStarter @}</artifactId>
</dependency>
</dependencies>

View File

@@ -110,6 +110,8 @@ Spring.SnippetView = Backbone.View.extend({
this.model.version.indexOf("Camden")!=-1 ? "1.4.5.RELEASE" :
this.model.version.indexOf("Brixton")!=-1 ? "1.3.8.RELEASE" :
"1.2.8.RELEASE";
this.model.eurekaStarter = this.model.version.indexOf("Finchley") !=-1 ? "spring-cloud-starter-netflix-eureka-client" :
`spring-cloud-starter-eureka`;
console.log(JSON.stringify(this.model))
var html = $(this.combinedTemplate(this.model));
this.$el.html(html);