yirenyishi
6 years ago
24 changed files with 56 additions and 206 deletions
@ -0,0 +1,2 @@ |
|||
server: |
|||
port: 8200 |
@ -1,27 +0,0 @@ |
|||
.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/ |
@ -1,41 +0,0 @@ |
|||
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-server') |
|||
compile('org.springframework.boot:spring-boot-starter-security') |
|||
testCompile('org.springframework.boot:spring-boot-starter-test') |
|||
} |
|||
|
|||
dependencyManagement { |
|||
imports { |
|||
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" |
|||
} |
|||
} |
@ -1,14 +0,0 @@ |
|||
package com.trgis.sb2sc; |
|||
|
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; |
|||
|
|||
@EnableEurekaServer |
|||
@SpringBootApplication |
|||
public class Sb2scEurekaApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(Sb2scEurekaApplication.class, args); |
|||
} |
|||
} |
@ -1,15 +0,0 @@ |
|||
package com.trgis.sb2sc.config; |
|||
|
|||
import org.springframework.security.config.annotation.web.builders.HttpSecurity; |
|||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; |
|||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; |
|||
|
|||
@EnableWebSecurity |
|||
class WebSecurityConfig extends WebSecurityConfigurerAdapter { |
|||
|
|||
@Override |
|||
protected void configure(HttpSecurity http) throws Exception { |
|||
http.csrf().ignoringAntMatchers("/eureka/**"); |
|||
super.configure(http); |
|||
} |
|||
} |
@ -1,24 +0,0 @@ |
|||
server: |
|||
port: 8761 |
|||
eureka: |
|||
datacenter: trmap |
|||
environment: product |
|||
server: |
|||
# 关闭自我保护 |
|||
enable-self-preservation: false |
|||
# 清理服务器 |
|||
eviction-interval-timer-in-ms: 5000 |
|||
client: |
|||
healthcheck: |
|||
enabled: true |
|||
service-url: |
|||
defaultZone: http://root:booszy@localhost:8761/eureka/ |
|||
register-with-eureka: false |
|||
fetch-registry: false |
|||
spring: |
|||
security: |
|||
basic: |
|||
enabled: true |
|||
user: |
|||
name: root |
|||
password: booszy |
@ -1,16 +0,0 @@ |
|||
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() { |
|||
} |
|||
|
|||
} |
@ -0,0 +1,2 @@ |
|||
server: |
|||
port: 8100 |
@ -1,2 +1,2 @@ |
|||
rootProject.name = 'sb2sc' |
|||
include('sc-eureka','sc-config','sc-provider','sc-consumer','sc-zuul','sc-dashboard','sc-zipkin') |
|||
include('sc-config','sc-provider','sc-consumer','sc-zuul','sc-dashboard','sc-zipkin') |
Loading…
Reference in new issue