Browse Source

sc provider success

master
yasaka 7 years ago
parent
commit
657818fea3
  1. 27
      sc-provider/.gitignore
  2. 43
      sc-provider/build.gradle
  3. 14
      sc-provider/src/main/java/com/trgis/sb2sc/Sb2scProviderApplication.java
  4. 0
      sc-provider/src/main/resources/application.yml
  5. 16
      sc-provider/src/test/java/com/trgis/sb2sc/Sb2scApplicationTests.java

27
sc-provider/.gitignore

@ -0,0 +1,27 @@
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
/out/
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

43
sc-provider/build.gradle

@ -0,0 +1,43 @@
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.trgis'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
springCloudVersion = 'Finchley.RELEASE'
}
dependencies {
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
compile('org.springframework.cloud:spring-cloud-starter-config')
compile('org.springframework.boot:spring-boot-starter-webflux')
compile('org.springframework.boot:spring-boot-starter-actuator')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

14
sc-provider/src/main/java/com/trgis/sb2sc/Sb2scProviderApplication.java

@ -0,0 +1,14 @@
package com.trgis.sb2sc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@EnableDiscoveryClient
@SpringBootApplication
public class Sb2scProviderApplication {
public static void main(String[] args) {
SpringApplication.run(Sb2scProviderApplication.class, args);
}
}

0
sc-provider/src/main/resources/application.yml

16
sc-provider/src/test/java/com/trgis/sb2sc/Sb2scApplicationTests.java

@ -0,0 +1,16 @@
package com.trgis.sb2sc;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class Sb2scApplicationTests {
@Test
public void contextLoads() {
}
}
Loading…
Cancel
Save