提交 7717ae8a authored 作者: xingxiaofeng's avatar xingxiaofeng

init ms-feign-eureka

上级 a5c2c248
ms-feign-eureka @ dc155d7a
Subproject commit dc155d7add5055f60164c7e99b16fa8e66ab01d6
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="ms-feign-eureka" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="central" />
<option name="url" value="http://dev.gtis.com.cn/nexus/content/groups/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/ms-feign-eureka.iml" filepath="$PROJECT_DIR$/ms-feign-eureka.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "0.5.6";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if(mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if(!outputFile.getParentFile().exists()) {
if(!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.3.7.RELEASE/maven-plugin/)
* [Cloud Bootstrap](https://spring.io/projects/spring-cloud-commons)
pipeline
{
agent any
stages
{
stage('SonarQube')
{
steps{
echo 'mvn withSonarQubeEnv'
/**
withSonarQubeEnv('sonar')
{
// sh "mvn sonar:sonar -Dsonar.java.binaries=target/sonar"
}
**/
}
}
stage('Build')
{
steps {
// 使用Shell脚本执行构建命令
// 这里以Maven构建Java项目为例
echo 'mvn clean package'
script {
//
sh """
pwd
ls
mvn clean package
"""
}
}
}
}
}
\ No newline at end of file
# 工程简介
# 延伸阅读
[APP_NAME_IS_UNDEFINED:192.168.102.15:0000] [,] 2025-02-25 21:13:42.513 INFO 16080 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c10ef16f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[APP_NAME_IS_UNDEFINED:192.168.4.128:0000] [,] 2025-02-28 17:47:26.238 INFO 32476 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6297202d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:43.206 INFO 16080 [main] com.njwt.cloud.mseureka.MsFeignEurekaApplication No active profile set, falling back to default profiles: default
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:43.873 INFO 16080 [main] org.springframework.cloud.context.scope.GenericScope BeanFactory id=c5ee261e-55d5-3384-b603-660918ffbbaa
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:43.952 INFO 16080 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c10ef16f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.112 INFO 16080 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat initialized with port(s): 1111 (http)
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.120 INFO 16080 [main] org.apache.coyote.http11.Http11NioProtocol Initializing ProtocolHandler ["http-nio-1111"]
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.128 INFO 16080 [main] org.apache.catalina.core.StandardService Starting service [Tomcat]
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.128 INFO 16080 [main] org.apache.catalina.core.StandardEngine Starting Servlet engine: [Apache Tomcat/9.0.22]
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.275 INFO 16080 [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring embedded WebApplicationContext
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.275 INFO 16080 [main] org.springframework.web.context.ContextLoader Root WebApplicationContext: initialization completed in 1062 ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.346 INFO 16080 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:44.355 INFO 16080 [main] com.netflix.config.DynamicPropertyFactory DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@23f3da8b
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:45.596 INFO 16080 [main] com.sun.jersey.server.impl.application.WebApplicationImpl Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:45.652 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON encoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:45.652 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON decoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:45.746 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML encoding codec XStreamXml
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:45.747 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML decoding codec XStreamXml
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:46.040 INFO 16080 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:46.188 INFO 16080 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Initializing ExecutorService 'applicationTaskExecutor'
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.262 INFO 16080 [main] org.springframework.cloud.netflix.eureka.InstanceInfoFactory Setting initial instance status as: STARTING
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.284 INFO 16080 [main] com.netflix.discovery.DiscoveryClient Initializing Eureka in region us-east-1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.284 INFO 16080 [main] com.netflix.discovery.DiscoveryClient Client configured to neither register nor query for data.
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.292 INFO 16080 [main] com.netflix.discovery.DiscoveryClient Discovery Client initialized at timestamp 1740489227290 with initial instances count: 0
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.328 INFO 16080 [main] com.netflix.eureka.DefaultEurekaServerContext Initializing ...
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.330 INFO 16080 [main] com.netflix.eureka.cluster.PeerEurekaNodes Adding new peer nodes [http://127.0.0.1:1111/eureka/]
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.862 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON encoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.862 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON decoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.862 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML encoding codec XStreamXml
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.862 INFO 16080 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML decoding codec XStreamXml
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.934 INFO 16080 [main] com.netflix.eureka.cluster.PeerEurekaNodes Replica node URL: http://127.0.0.1:1111/eureka/
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.940 INFO 16080 [main] com.netflix.eureka.registry.AbstractInstanceRegistry Finished initializing remote region registries. All known remote regions: []
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.940 INFO 16080 [main] com.netflix.eureka.DefaultEurekaServerContext Initialized
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:47.951 INFO 16080 [main] org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver Exposing 2 endpoint(s) beneath base path '/actuator'
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.008 INFO 16080 [main] org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry Registering application MS-FEIGN-EUREKA-SERVER with eureka with status UP
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.012 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Setting the eureka configuration..
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.012 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Eureka data center value eureka.datacenter is not set, defaulting to default
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.013 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Eureka environment value eureka.environment is not set, defaulting to test
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.026 INFO 16080 [main] org.apache.coyote.http11.Http11NioProtocol Starting ProtocolHandler ["http-nio-1111"]
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.028 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap isAws returned false
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.028 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Initialized server context
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.030 INFO 16080 [Thread-22] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Got 1 instances from neighboring DS node
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.030 INFO 16080 [Thread-22] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Renew threshold is: 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.030 INFO 16080 [Thread-22] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Changing status to UP
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.039 INFO 16080 [Thread-22] org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration Started Eureka Server
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.047 INFO 16080 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat started on port(s): 1111 (http) with context path ''
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.048 INFO 16080 [main] org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration Updating port to 1111
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.049 INFO 16080 [main] com.njwt.cloud.mseureka.MsFeignEurekaApplication Started MsFeignEurekaApplication in 6.711 seconds (JVM running for 7.849)
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.997 INFO 16080 [RMI TCP Connection(1)-192.168.31.19] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring DispatcherServlet 'dispatcherServlet'
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:48.998 INFO 16080 [RMI TCP Connection(1)-192.168.31.19] org.springframework.web.servlet.DispatcherServlet Initializing Servlet 'dispatcherServlet'
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:13:49.004 INFO 16080 [RMI TCP Connection(1)-192.168.31.19] org.springframework.web.servlet.DispatcherServlet Completed initialization in 6 ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:14:48.031 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:15:48.042 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:16:48.051 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 9ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:17:48.060 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:18:48.074 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:19:48.075 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:20:48.087 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:21:48.095 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:22:48.109 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:23:48.112 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:24:48.113 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:25:48.115 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:26:48.119 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:27:48.125 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:28:47.942 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:28:48.130 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:29:48.141 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:30:48.149 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 9ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:31:48.151 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:32:48.152 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:33:48.157 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 4ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:34:48.161 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:35:48.167 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:36:48.176 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:37:48.190 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:38:48.193 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:39:48.197 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:40:48.202 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:41:48.214 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:42:48.222 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:43:47.946 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:43:48.228 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 6ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:44:48.241 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:45:48.252 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:46:48.257 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:47:48.261 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 4ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:48:48.266 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 4ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:49:48.278 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:50:48.283 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:51:48.294 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:52:48.297 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 2ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:53:48.309 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:54:48.327 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 18ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:55:48.343 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 15ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:56:48.357 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:57:48.357 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:58:47.963 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:58:48.365 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 21:59:48.372 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 6ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:00:48.387 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:01:48.402 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 15ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:02:48.417 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:03:48.431 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:04:48.452 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 21ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:05:48.466 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:06:48.474 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:07:48.485 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:08:48.486 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:09:48.488 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:10:48.495 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:11:48.510 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:12:48.510 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:13:47.978 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:13:48.518 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:14:48.519 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:15:48.520 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:16:48.520 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:17:48.531 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:18:48.533 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:19:48.537 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:20:48.552 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:21:48.554 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 2ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:22:48.564 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:23:48.573 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 9ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:24:48.586 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:25:48.599 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:26:48.608 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:27:48.614 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 6ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:28:47.989 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:28:48.626 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:29:48.641 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:30:48.652 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:31:48.653 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:32:48.669 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 15ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:33:48.682 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:34:48.685 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 2ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:35:48.698 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:36:48.709 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:37:48.722 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:38:48.733 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:39:48.745 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:40:48.749 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 4ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:41:48.755 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:42:48.759 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:43:47.995 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:43:48.771 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:44:48.772 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:45:48.782 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:46:48.786 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:47:48.788 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 2ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:48:48.796 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:49:48.809 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:50:48.822 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:51:48.834 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:52:48.844 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:53:48.863 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 18ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:54:48.875 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:55:48.888 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:56:48.901 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:57:48.903 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:58:48.006 INFO 16080 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:58:48.914 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 22:59:48.923 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 9ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 23:00:48.925 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 23:01:48.940 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 23:02:48.954 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 14ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 23:03:48.957 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.102.15:1111] [,] 2025-02-25 23:04:48.961 INFO 16080 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 3ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:26.769 INFO 32476 [main] com.njwt.cloud.mseureka.MsFeignEurekaApplication No active profile set, falling back to default profiles: default
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.207 INFO 32476 [main] org.springframework.cloud.context.scope.GenericScope BeanFactory id=c5ee261e-55d5-3384-b603-660918ffbbaa
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.245 INFO 32476 [main] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$6297202d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.372 INFO 32476 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat initialized with port(s): 1111 (http)
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.380 INFO 32476 [main] org.apache.coyote.http11.Http11NioProtocol Initializing ProtocolHandler ["http-nio-1111"]
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.392 INFO 32476 [main] org.apache.catalina.core.StandardService Starting service [Tomcat]
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.392 INFO 32476 [main] org.apache.catalina.core.StandardEngine Starting Servlet engine: [Apache Tomcat/9.0.22]
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.464 INFO 32476 [main] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring embedded WebApplicationContext
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.464 INFO 32476 [main] org.springframework.web.context.ContextLoader Root WebApplicationContext: initialization completed in 687 ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.509 INFO 32476 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:27.514 INFO 32476 [main] com.netflix.config.DynamicPropertyFactory DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@5a6fa56e
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.304 INFO 32476 [main] com.sun.jersey.server.impl.application.WebApplicationImpl Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.335 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON encoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.336 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON decoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.399 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML encoding codec XStreamXml
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.399 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML decoding codec XStreamXml
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.617 INFO 32476 [main] com.netflix.config.sources.URLConfigurationSource To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:28.723 INFO 32476 [main] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Initializing ExecutorService 'applicationTaskExecutor'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.438 INFO 32476 [main] org.springframework.cloud.netflix.eureka.InstanceInfoFactory Setting initial instance status as: STARTING
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.451 INFO 32476 [main] com.netflix.discovery.DiscoveryClient Initializing Eureka in region us-east-1
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.451 INFO 32476 [main] com.netflix.discovery.DiscoveryClient Client configured to neither register nor query for data.
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.456 INFO 32476 [main] com.netflix.discovery.DiscoveryClient Discovery Client initialized at timestamp 1740736049455 with initial instances count: 0
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.475 INFO 32476 [main] com.netflix.eureka.DefaultEurekaServerContext Initializing ...
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.476 INFO 32476 [main] com.netflix.eureka.cluster.PeerEurekaNodes Adding new peer nodes [http://127.0.0.1:1111/eureka/]
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.820 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON encoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.820 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using JSON decoding codec LegacyJacksonJson
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.820 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML encoding codec XStreamXml
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.820 INFO 32476 [main] com.netflix.discovery.provider.DiscoveryJerseyProvider Using XML decoding codec XStreamXml
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.865 INFO 32476 [main] com.netflix.eureka.cluster.PeerEurekaNodes Replica node URL: http://127.0.0.1:1111/eureka/
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.869 INFO 32476 [main] com.netflix.eureka.registry.AbstractInstanceRegistry Finished initializing remote region registries. All known remote regions: []
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.870 INFO 32476 [main] com.netflix.eureka.DefaultEurekaServerContext Initialized
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.877 INFO 32476 [main] org.springframework.boot.actuate.endpoint.web.EndpointLinksResolver Exposing 2 endpoint(s) beneath base path '/actuator'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.917 INFO 32476 [main] org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry Registering application MS-FEIGN-EUREKA-SERVER with eureka with status UP
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.922 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Setting the eureka configuration..
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.923 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Eureka data center value eureka.datacenter is not set, defaulting to default
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.924 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Eureka environment value eureka.environment is not set, defaulting to test
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.932 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap isAws returned false
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.933 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerBootstrap Initialized server context
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.933 INFO 32476 [Thread-19] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Got 1 instances from neighboring DS node
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.933 INFO 32476 [main] org.apache.coyote.http11.Http11NioProtocol Starting ProtocolHandler ["http-nio-1111"]
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.933 INFO 32476 [Thread-19] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Renew threshold is: 1
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.933 INFO 32476 [Thread-19] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Changing status to UP
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.943 INFO 32476 [Thread-19] org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration Started Eureka Server
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.959 INFO 32476 [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer Tomcat started on port(s): 1111 (http) with context path ''
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.959 INFO 32476 [main] org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration Updating port to 1111
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:29.961 INFO 32476 [main] com.njwt.cloud.mseureka.MsFeignEurekaApplication Started MsFeignEurekaApplication in 4.712 seconds (JVM running for 5.426)
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:30.466 INFO 32476 [RMI TCP Connection(2)-192.168.4.128] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] Initializing Spring DispatcherServlet 'dispatcherServlet'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:30.466 INFO 32476 [RMI TCP Connection(2)-192.168.4.128] org.springframework.web.servlet.DispatcherServlet Initializing Servlet 'dispatcherServlet'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:47:30.470 INFO 32476 [RMI TCP Connection(2)-192.168.4.128] org.springframework.web.servlet.DispatcherServlet Completed initialization in 4 ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:48:29.937 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:49:29.945 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 8ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:50:29.956 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:51:29.963 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 7ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:52:29.970 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 6ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:53:29.970 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:54:29.983 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 13ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:55:29.994 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 10ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:56:30.006 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 12ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:57:30.008 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 2ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:58:30.010 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 1ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 17:59:30.016 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 4ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:00:30.016 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 0ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:01:30.022 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 5ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:29.880 INFO 32476 [ReplicaAwareInstanceRegistry - RenewalThresholdUpdater] com.netflix.eureka.registry.PeerAwareInstanceRegistryImpl Current renewal threshold is : 1
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:30.033 INFO 32476 [Eureka-EvictionTimer] com.netflix.eureka.registry.AbstractInstanceRegistry Running the evict task with compensationTime 11ms
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.504 INFO 32476 [Thread-21] org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry Unregistering application MS-FEIGN-EUREKA-SERVER with eureka with status DOWN
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.507 INFO 32476 [Thread-21] com.netflix.eureka.DefaultEurekaServerContext Shutting down ...
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.513 INFO 32476 [Thread-21] com.netflix.eureka.DefaultEurekaServerContext Shut down
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.516 INFO 32476 [Thread-21] org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Shutting down ExecutorService 'applicationTaskExecutor'
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.520 INFO 32476 [Thread-21] com.netflix.discovery.DiscoveryClient Shutting down DiscoveryClient ...
[ms-feign-eureka-server:192.168.4.128:1111] [,] 2025-02-28 18:02:43.521 INFO 32476 [Thread-21] com.netflix.discovery.DiscoveryClient Completed shut down of DiscoveryClient
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$" dumb="true">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="true" />
</content>
</component>
</module>
\ No newline at end of file
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
if [ -n "$MVNW_REPOURL" ]; then
jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
else
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
fi
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if $cygwin; then
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
fi
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget "$jarUrl" -O "$wrapperJarPath"
else
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl -o "$wrapperJarPath" "$jarUrl" -f
else
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaClass=`cygpath --path --windows "$javaClass"`
fi
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.njwt.cloud</groupId>
<artifactId>ms-feign-eureka</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>ms-feign-eureka</name>
<packaging>jar</packaging>
<parent>
<groupId>com.njwt.cloud</groupId>
<artifactId>mastercloud2x</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<dependencies>
<!-- eureka注册中心依赖 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
</dependencies>
</project>
FROM openjdk:8-jdk-alpine
MAINTAINER xxf <xxf@163.com>
ADD *.jar /
EXPOSE 1111
# HEALTHCHECK --interval=30s --timeout=3s \
# CMD curl -f http://localhost:1112/ || exit 1
ENTRYPOINT ["java","-jar","ms-feign-eureka-0.0.1-SNAPSHOT.jar"]
package com.njwt.cloud.mseureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class MsFeignEurekaApplication {
public static void main(String[] args) {
SpringApplication.run(MsFeignEurekaApplication.class, args);
}
}
server:
port: 1111
#配置应用的名字
spring:
application:
name: ms-feign-eureka-server
eureka:
client:
register-with-eureka: false #是否将当前应用注册到注册中心
fetch-registry: false #当前项目是否到注册中心中拉去服务列表
service-url: #给Map集合属性中赋值
defaultZone: http://127.0.0.1:1111/eureka
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<contextName>${APP_NAME}</contextName>
<springProperty name="APP_NAME" scope="context" source="spring.application.name"/>
<springProperty name="LOG_FILE" scope="context" source="logging.file" defaultValue="./logs/${APP_NAME}"/>
<springProperty name="LOG_POINT_FILE" scope="context" source="logging.file" defaultValue="./logs/point"/>
<springProperty name="LOG_MAXFILESIZE" scope="context" source="logback.filesize" defaultValue="50MB"/>
<springProperty name="LOG_FILEMAXDAY" scope="context" source="logback.filemaxday" defaultValue="7"/>
<springProperty name="ServerIP" scope="context" source="spring.cloud.client.ip-address" defaultValue="0.0.0.0"/>
<springProperty name="ServerPort" scope="context" source="server.port" defaultValue="0000"/>
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
<conversionRule conversionWord="wex"
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
<conversionRule conversionWord="wEx"
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
<!-- 彩色日志格式 -->
<property name="CONSOLE_LOG_PATTERN"
value="[${APP_NAME}:${ServerIP}:${ServerPort}] [%clr(%X{traceid}){yellow},%clr(%X{X-B3-TraceId}){yellow}] %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%level){blue} %clr(${PID}){magenta} %clr([%thread]){orange} %clr(%logger){cyan} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
<property name="CONSOLE_LOG_PATTERN_NO_COLOR"
value="[${APP_NAME}:${ServerIP}:${ServerPort}] [%X{traceid},%X{X-B3-TraceId}] %d{yyyy-MM-dd HH:mm:ss.SSS} %level ${PID} [%thread] %logger %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
<!-- 控制台日志 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 按照每天生成常规日志文件 -->
<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_FILE}/${APP_NAME}-error.log</file>
<!-- 基于时间的分包策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}/${APP_NAME}-error.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<!--保留时间,单位:天-->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN_NO_COLOR}</pattern>
<charset>UTF-8</charset>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter"><!-- 只打印错误日志 -->
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 按照每天生成常规日志文件 -->
<appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_FILE}/${APP_NAME}-info.log</file>
<!-- 基于时间的分包策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}/${APP_NAME}-info.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<!--保留时间,单位:天-->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN_NO_COLOR}</pattern>
<charset>UTF-8</charset>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="ERROR"/>
<appender-ref ref="INFO"/>
</root>
</configuration>
\ No newline at end of file
package com.njwt.cloud.mseureka;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MseurekaApplicationTests {
}
server:
port: 1111
#配置应用的名字
spring:
application:
name: ms-feign-eureka-server
eureka:
client:
register-with-eureka: false #是否将当前应用注册到注册中心
fetch-registry: false #当前项目是否到注册中心中拉去服务列表
service-url: #给Map集合属性中赋值
defaultZone: http://127.0.0.1:1111/eureka
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<contextName>${APP_NAME}</contextName>
<springProperty name="APP_NAME" scope="context" source="spring.application.name"/>
<springProperty name="LOG_FILE" scope="context" source="logging.file" defaultValue="./logs/${APP_NAME}"/>
<springProperty name="LOG_POINT_FILE" scope="context" source="logging.file" defaultValue="./logs/point"/>
<springProperty name="LOG_MAXFILESIZE" scope="context" source="logback.filesize" defaultValue="50MB"/>
<springProperty name="LOG_FILEMAXDAY" scope="context" source="logback.filemaxday" defaultValue="7"/>
<springProperty name="ServerIP" scope="context" source="spring.cloud.client.ip-address" defaultValue="0.0.0.0"/>
<springProperty name="ServerPort" scope="context" source="server.port" defaultValue="0000"/>
<!-- 彩色日志 -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
<conversionRule conversionWord="wex"
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
<conversionRule conversionWord="wEx"
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
<!-- 彩色日志格式 -->
<property name="CONSOLE_LOG_PATTERN"
value="[${APP_NAME}:${ServerIP}:${ServerPort}] [%clr(%X{traceid}){yellow},%clr(%X{X-B3-TraceId}){yellow}] %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%level){blue} %clr(${PID}){magenta} %clr([%thread]){orange} %clr(%logger){cyan} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
<property name="CONSOLE_LOG_PATTERN_NO_COLOR"
value="[${APP_NAME}:${ServerIP}:${ServerPort}] [%X{traceid},%X{X-B3-TraceId}] %d{yyyy-MM-dd HH:mm:ss.SSS} %level ${PID} [%thread] %logger %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}"/>
<!-- 控制台日志 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>UTF-8</charset>
</encoder>
</appender>
<!-- 按照每天生成常规日志文件 -->
<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_FILE}/${APP_NAME}-error.log</file>
<!-- 基于时间的分包策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}/${APP_NAME}-error.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<!--保留时间,单位:天-->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN_NO_COLOR}</pattern>
<charset>UTF-8</charset>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
<filter class="ch.qos.logback.classic.filter.LevelFilter"><!-- 只打印错误日志 -->
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 按照每天生成常规日志文件 -->
<appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_FILE}/${APP_NAME}-info.log</file>
<!-- 基于时间的分包策略 -->
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE}/${APP_NAME}-info.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<!--保留时间,单位:天-->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${CONSOLE_LOG_PATTERN_NO_COLOR}</pattern>
<charset>UTF-8</charset>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="ERROR"/>
<appender-ref ref="INFO"/>
</root>
</configuration>
\ No newline at end of file
#Generated by Maven
#Sat Mar 01 11:35:45 CST 2025
version=0.0.1-SNAPSHOT
groupId=com.njwt.cloud
artifactId=ms-feign-eureka
D:\soft\wx\mastercloud2.1x\ms-feign-eureka\src\main\java\com\njwt\cloud\mseureka\MsFeignEurekaApplication.java
D:\soft\wx\mastercloud2.1x\ms-feign-eureka\src\test\java\com\njwt\cloud\mseureka\MseurekaApplicationTests.java
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论