Pārlūkot izejas kodu

删除多余的注释

master
yirenyishi pirms 6 gadiem
vecāks
revīzija
ba835ff564
  1. 6
      sc-config/build.gradle
  2. 4
      sc-config/src/main/resources/application.yml
  3. 2
      sc-dashboard/build.gradle
  4. 1
      sc-dashboard/src/main/java/com/trgis/sb2sc/Sb2scDashboardApplication.java
  5. 1
      sc-zuul/src/main/java/com/trgis/sb2sc/Sb2scZuulApplication.java
  6. 3
      sc-zuul/src/main/resources/bootstrap.yml

6
sc-config/build.gradle

@ -11,7 +11,6 @@ buildscript {
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
@ -23,11 +22,14 @@ repositories {
mavenCentral()
}
ext {
springCloudVersion = 'Finchley.RELEASE'
}
jar{
manifest {attributes 'Main-Class':'com.trgis.sb2sc.Sb2scConfigApplication'}
}
dependencies {
compile('org.springframework.cloud:spring-cloud-config-server')
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')

4
sc-config/src/main/resources/application.yml

@ -21,7 +21,5 @@ eureka:
defaultZone: http://root:booszy@localhost:8761/eureka/
instance:
prefer-ip-address: true
# instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${spring.application.instance_id:${server.port}}
instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
appname: sc-config-server
appname: sc-config-server

2
sc-dashboard/build.gradle

@ -31,11 +31,9 @@ ext {
dependencies {
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')
compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix-dashboard')
compile('org.springframework.cloud:spring-cloud-starter-netflix-turbine')
//compile('org.springframework.cloud:spring-cloud-starter-netflix-turbine-stream')
}
dependencyManagement {

1
sc-dashboard/src/main/java/com/trgis/sb2sc/Sb2scDashboardApplication.java

@ -11,7 +11,6 @@ import org.springframework.cloud.netflix.turbine.EnableTurbine;
@EnableTurbine
@EnableHystrixDashboard
public class Sb2scDashboardApplication {
public static void main(String[] args) {
SpringApplication.run(Sb2scDashboardApplication.class, args);
}

1
sc-zuul/src/main/java/com/trgis/sb2sc/Sb2scZuulApplication.java

@ -11,7 +11,6 @@ import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
@EnableZuulProxy
@RefreshScope
public class Sb2scZuulApplication {
public static void main(String[] args) {
SpringApplication.run(Sb2scZuulApplication.class, args);
}

3
sc-zuul/src/main/resources/bootstrap.yml

@ -18,5 +18,4 @@ spring:
fail-fast: true
username: root
password: booszy
profile: csdn
profile: csdn
Notiek ielāde…
Atcelt
Saglabāt