@@ -0,0 +1,13 @@
|
||||
package dev.mars3142.fhq.config;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ConfigServiceApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ConfigServiceApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
7
src/main/resources/application-dev.yaml
Normal file
7
src/main/resources/application-dev.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
server:
|
||||
port: 8091
|
||||
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://localhost:8761/eureka
|
41
src/main/resources/application.yaml
Normal file
41
src/main/resources/application.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
eureka:
|
||||
client:
|
||||
register-with-eureka: true
|
||||
fetch-registry: true
|
||||
service-url:
|
||||
defaultZone: http://eureka-service.web:8761/eureka
|
||||
instance:
|
||||
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
|
||||
|
||||
info:
|
||||
application:
|
||||
name: ${spring.application.name}
|
||||
version: '@project.version@'
|
||||
spring-cloud-version: '@spring-cloud.version@'
|
||||
spring-boot-version: '@project.parent.version@'
|
||||
|
||||
management:
|
||||
endpoint:
|
||||
health:
|
||||
probes:
|
||||
enabled: true
|
||||
|
||||
server:
|
||||
port: ${PORT:8080}
|
||||
shutdown: graceful
|
||||
error:
|
||||
include-message: on_param
|
||||
include-stacktrace: on_param
|
||||
|
||||
sentry:
|
||||
dsn: https://354321d371291036cffcdb5b1a72fd6e@o394865.ingest.us.sentry.io/4507718826262528
|
||||
environment: edge-service
|
||||
|
||||
# Set traces_sample_rate to 1.0 to capture 100%
|
||||
# of transactions for tracing.
|
||||
# We recommend adjusting this value in production.
|
||||
tracesSampleRate: 1.0
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: config-service
|
8
src/main/resources/banner.txt
Normal file
8
src/main/resources/banner.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
,-----. ,---.,--.
|
||||
' .--./ ,---. ,--,--, / .-'`--' ,---.
|
||||
| | | .-. || \| `-,,--.| .-. |
|
||||
' '--'\' '-' '| || || .-'| |' '-' '
|
||||
`-----' `---' `--''--'`--' `--'.`- /
|
||||
`---'
|
||||
${application.title} ${application.version}
|
||||
Powered by Spring Boot ${spring-boot.version}
|
@@ -0,0 +1,13 @@
|
||||
package dev.mars3142.fhq.config;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ConfigServiceApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user