按技术方向切分为多个starter

This commit is contained in:
Administrator
2020-10-21 13:12:54 +08:00
parent 1fef4b6b41
commit 3bbc8ead22
36 changed files with 1032 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package org.mall.ebtp.cloud.eureka.starter;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

View File

@ -0,0 +1,9 @@
# 胜智云eureka 统一配置
eureka:
client:
service-url:
defaultZone: http://192.168.40.17:12093/eureka/,http://192.168.40.17:18126/eureka/,http://192.168.40.17:28641/eureka/
instance:
prefer-ip-address: true
instance-id: ${spring.cloud.client.ip-address}:${server.port}

View File

@ -0,0 +1,38 @@
package org.mall.ebtp.cloud.eureka.starter;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}