diff --git a/udf-server/udf-eureka-config-server/pom.xml b/udf-server/udf-eureka-config-server/pom.xml new file mode 100644 index 0000000..7d6e6b5 --- /dev/null +++ b/udf-server/udf-eureka-config-server/pom.xml @@ -0,0 +1,64 @@ + + + 4.0.0 + + udf-eureka-config-server + udf-eureka-config-server + jar + http://itkk.org:81 + + + org.itkk.udf + udf-server + 1.0 + + + + 9001 + 8001 + + + + + + org.springframework.cloud + spring-cloud-starter-netflix-eureka-server + + + + org.springframework.cloud + spring-cloud-config-server + + + + + org.itkk.udf + udf-starter-core + + + + + + + ${project.basedir}/src/main/resources/ + true + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${springboot.version} + + + + repackage + + + + + + + diff --git a/udf-server/udf-eureka-config-server/src/main/java/org/itkk/udf/eureka/config/server/UdfEurekaConfigServerApplication.java b/udf-server/udf-eureka-config-server/src/main/java/org/itkk/udf/eureka/config/server/UdfEurekaConfigServerApplication.java new file mode 100644 index 0000000..53c4443 --- /dev/null +++ b/udf-server/udf-eureka-config-server/src/main/java/org/itkk/udf/eureka/config/server/UdfEurekaConfigServerApplication.java @@ -0,0 +1,17 @@ +package org.itkk.udf.eureka.config.server; + +import org.springframework.boot.SpringApplication; +import org.springframework.cloud.client.SpringCloudApplication; +import org.springframework.cloud.config.server.EnableConfigServer; +import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; + +@SpringCloudApplication +@EnableEurekaServer +@EnableConfigServer +public class UdfEurekaConfigServerApplication { + + public static void main(String[] args) { + SpringApplication.run(UdfEurekaConfigServerApplication.class, args); + } + +} diff --git a/udf-server/udf-eureka-config-server/src/main/resources/banner.txt b/udf-server/udf-eureka-config-server/src/main/resources/banner.txt new file mode 100644 index 0000000..1b84812 --- /dev/null +++ b/udf-server/udf-eureka-config-server/src/main/resources/banner.txt @@ -0,0 +1,11 @@ + .----------------. .----------------. .----------------. +| .--------------. || .--------------. || .--------------. | +| | _____ _____ | || | ________ | || | _________ | | +| ||_ _||_ _|| || | |_ ___ `. | || | |_ ___ | | | +| | | | | | | || | | | `. \ | || | | |_ \_| | | +| | | ' ' | | || | | | | | | || | | _| | | +| | \ `--' / | || | _| |___.' / | || | _| |_ | | +| | `.__.' | || | |________.' | || | |_____| | | +| | | || | | || | | | +| '--------------' || '--------------' || '--------------' | + '----------------' '----------------' '----------------' \ No newline at end of file diff --git a/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties new file mode 100644 index 0000000..9052fee --- /dev/null +++ b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties @@ -0,0 +1,20 @@ +# EUREKA.ENVIRONMENT ( EurekaServerBootstrap ) +eureka.environment=${spring.profiles.active} +# EUREKA.INSTANCE ( EurekaInstanceConfigBean ) +eureka.instance.preferIpAddress=true +# EUREKA.CLIENT (EurekaClientConfigBean , EurekaServerConfigBean ) +eureka.client.enabled=true +eureka.client.serviceUrl.defaultZone=http://127.0.0.1:${server.port}/eureka/ +eureka.client.register-with-eureka=true +eureka.client.fetch-registry=true +# spring.cloud.config.server ( ConfigServerProperties ) +spring.cloud.config.server.prefix=config-server +# spring.cloud.config.server.git ( MultipleJGitEnvironmentRepository ) ({application}/{profile}/{label}) +spring.cloud.config.server.git.uri=https://gitee.com/wangkang/udf.git +spring.cloud.config.server.git.searchPaths=udf-config-repository/{application} +spring.cloud.config.server.git.defaultLabel=master +spring.cloud.config.server.git.forcePull=true +spring.cloud.config.server.git.username=udf_admin@163.com +spring.cloud.config.server.git.password=123456!@#$%^ +# LOGGING +logging.file=d:/develop/application-log/${spring.application.name}_${server.port}_${spring.profiles.active}/base.log \ No newline at end of file diff --git a/udf-server/udf-eureka-config-server/src/main/resources/bootstrap.properties b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap.properties new file mode 100644 index 0000000..2ae004f --- /dev/null +++ b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap.properties @@ -0,0 +1,34 @@ +# INFO +info.build.group=${project.groupId} +info.build.artifact=${project.artifactId} +info.build.version=${project.version} +info.build.name=${project.name} +info.build.env=${spring.profiles.active} +info.build.time=${project.build.date} +info.build.encoding=${project.build.sourceEncoding} +info.build.java.source=${java.version} +info.build.java.target=${java.version} +# SPRING +spring.application.name=${project.name} +# HTTP SERVER +server.port=${server.port} +# MANAGEMENT HTTP SERVER (ManagementServerProperties) +#management.server.address=127.0.0.1 +management.server.port=${management.port} +# ENDPOINTS WEB CONFIGURATION (WebEndpointProperties) +management.endpoints.web.exposure.include=* +# ENDPOINT +management.endpoint.health.showDetails=always +management.endpoint.shutdown.enabled=true +management.endpoint.restart.enabled=true +management.endpoint.pause.enabled=true +management.endpoint.resume.enabled=true +# JACKSON +#spring.jackson.dateFormat=${org.itkk.application.config.dateFormat} +#spring.jackson.jodaDateTimeFormat=${org.itkk.application.config.dateFormat} +spring.jackson.timeZone=Asia/Shanghai +spring.jackson.serialization.INDENT_OUTPUT=true +spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=true +spring.jackson.deserialization.FAIL_ON_UNKNOWN_PROPERTIES=true +spring.jackson.parser.ALLOW_SINGLE_QUOTES=true +spring.jackson.parser.ALLOW_UNQUOTED_CONTROL_CHARS=true \ No newline at end of file diff --git a/udf-server/udf-eureka-config-server/src/main/resources/logback.xml b/udf-server/udf-eureka-config-server/src/main/resources/logback.xml new file mode 100644 index 0000000..049dc97 --- /dev/null +++ b/udf-server/udf-eureka-config-server/src/main/resources/logback.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file