File tree 14 files changed +368
-0
lines changed
src/test/java/com/fangjia/fsh
fangjia-fsh-house-service
main/java/com/fangjia/fsh/house
test/java/com/fangjia/fsh/house
fangjia-fsh-substitution-service
main/java/com/fangjia/fsh/substitution
test/java/com/fangjia/fsh/substitution
fangjia-fsh-user-service/src
main/java/com/fangjia/fsh/user
test/java/com/fangjia/user
14 files changed +368
-0
lines changed Original file line number Diff line number Diff line change
1
+ # maven ignore
2
+ target /
3
+ * .jar
4
+ * .war
5
+ * .zip
6
+ * .tar
7
+ * .tar.gz
8
+
9
+ # eclipse ignore
10
+ .settings /
11
+ .project
12
+ .classpath
13
+
14
+ # idea ignore
15
+ .idea /
16
+ * .ipr
17
+ * .iml
18
+ * .iws
19
+
20
+ # temp ignore
21
+ * .log
22
+ * .cache
23
+ * .diff
24
+ * .patch
25
+ * .tmp
26
+ * .java~
27
+ * .properties~
28
+ * .xml~
29
+
30
+ # system ignore
31
+ .DS_Store
32
+ Thumbs.db
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >com.fangjia</groupId >
6
+ <artifactId >fangjia-eureka</artifactId >
7
+ <version >1.0</version >
8
+ <packaging >jar</packaging >
9
+
10
+ <name >fangjia-eureka</name >
11
+ <url >http://maven.apache.org</url >
12
+
13
+ <properties >
14
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
+ </properties >
16
+
17
+ <parent >
18
+ <groupId >org.springframework.boot</groupId >
19
+ <artifactId >spring-boot-starter-parent</artifactId >
20
+ <version >1.5.4.RELEASE</version >
21
+ <relativePath />
22
+ </parent >
23
+
24
+
25
+ <dependencies >
26
+
27
+ <dependency >
28
+ <groupId >org.springframework.cloud</groupId >
29
+ <artifactId >spring-cloud-starter-eureka-server</artifactId >
30
+ </dependency >
31
+
32
+ </dependencies >
33
+
34
+ <dependencyManagement >
35
+ <dependencies >
36
+ <dependency >
37
+ <groupId >org.springframework.cloud</groupId >
38
+ <artifactId >spring-cloud-dependencies</artifactId >
39
+ <version >Dalston.SR1</version >
40
+ <type >pom</type >
41
+ <scope >import</scope >
42
+ </dependency >
43
+ </dependencies >
44
+ </dependencyManagement >
45
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .fangjia .eureka ;
2
+
3
+ import org .springframework .boot .SpringApplication ;
4
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+ import org .springframework .cloud .netflix .eureka .server .EnableEurekaServer ;
6
+
7
+ /**
8
+ * 服务注册中心
9
+ *
10
+ * @author yinjihuan
11
+ *
12
+ */
13
+ @ EnableEurekaServer
14
+ @ SpringBootApplication
15
+ public class EurekaServerApplication {
16
+ public static void main (String [] args ) {
17
+ SpringApplication .run (EurekaServerApplication .class , args );
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ server.port =8761
2
+ spring.application.name =fangjia-eureka
3
+
4
+ eureka.instance.hostname =localhost
5
+ eureka.client.register-with-eureka =false
6
+ eureka.client.fetch-registry =false
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >com.fangjia</groupId >
6
+ <artifactId >fangjia-fsh-api</artifactId >
7
+ <version >1.0</version >
8
+ <packaging >jar</packaging >
9
+
10
+ <name >fangjia-fsh-api</name >
11
+ <url >http://maven.apache.org</url >
12
+
13
+ <properties >
14
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
+ </properties >
16
+
17
+ <dependencies >
18
+ <dependency >
19
+ <groupId >junit</groupId >
20
+ <artifactId >junit</artifactId >
21
+ <version >3.8.1</version >
22
+ <scope >test</scope >
23
+ </dependency >
24
+ </dependencies >
25
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh ;
2
+
3
+ import junit .framework .Test ;
4
+ import junit .framework .TestCase ;
5
+ import junit .framework .TestSuite ;
6
+
7
+ /**
8
+ * Unit test for simple App.
9
+ */
10
+ public class AppTest
11
+ extends TestCase
12
+ {
13
+ /**
14
+ * Create the test case
15
+ *
16
+ * @param testName name of the test case
17
+ */
18
+ public AppTest ( String testName )
19
+ {
20
+ super ( testName );
21
+ }
22
+
23
+ /**
24
+ * @return the suite of tests being tested
25
+ */
26
+ public static Test suite ()
27
+ {
28
+ return new TestSuite ( AppTest .class );
29
+ }
30
+
31
+ /**
32
+ * Rigourous Test :-)
33
+ */
34
+ public void testApp ()
35
+ {
36
+ assertTrue ( true );
37
+ }
38
+ }
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >com.fangjia</groupId >
6
+ <artifactId >fangjia-fsh-house-service</artifactId >
7
+ <version >1.0</version >
8
+ <packaging >jar</packaging >
9
+
10
+ <name >fangjia-fsh-house-service</name >
11
+ <url >http://maven.apache.org</url >
12
+
13
+ <properties >
14
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
+ </properties >
16
+
17
+ <dependencies >
18
+ <dependency >
19
+ <groupId >junit</groupId >
20
+ <artifactId >junit</artifactId >
21
+ <version >3.8.1</version >
22
+ <scope >test</scope >
23
+ </dependency >
24
+ </dependencies >
25
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh .house ;
2
+
3
+ /**
4
+ * Hello world!
5
+ *
6
+ */
7
+ public class App
8
+ {
9
+ public static void main ( String [] args )
10
+ {
11
+ System .out .println ( "Hello World!" );
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh .house ;
2
+
3
+ import junit .framework .Test ;
4
+ import junit .framework .TestCase ;
5
+ import junit .framework .TestSuite ;
6
+
7
+ /**
8
+ * Unit test for simple App.
9
+ */
10
+ public class AppTest
11
+ extends TestCase
12
+ {
13
+ /**
14
+ * Create the test case
15
+ *
16
+ * @param testName name of the test case
17
+ */
18
+ public AppTest ( String testName )
19
+ {
20
+ super ( testName );
21
+ }
22
+
23
+ /**
24
+ * @return the suite of tests being tested
25
+ */
26
+ public static Test suite ()
27
+ {
28
+ return new TestSuite ( AppTest .class );
29
+ }
30
+
31
+ /**
32
+ * Rigourous Test :-)
33
+ */
34
+ public void testApp ()
35
+ {
36
+ assertTrue ( true );
37
+ }
38
+ }
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
+ <modelVersion >4.0.0</modelVersion >
4
+
5
+ <groupId >com.fangjia</groupId >
6
+ <artifactId >fangjia-fsh-substitution-service</artifactId >
7
+ <version >1.0</version >
8
+ <packaging >jar</packaging >
9
+
10
+ <name >fangjia-fsh-substitution-service</name >
11
+ <url >http://maven.apache.org</url >
12
+
13
+ <properties >
14
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15
+ </properties >
16
+
17
+ <dependencies >
18
+ <dependency >
19
+ <groupId >junit</groupId >
20
+ <artifactId >junit</artifactId >
21
+ <version >3.8.1</version >
22
+ <scope >test</scope >
23
+ </dependency >
24
+ </dependencies >
25
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh .substitution ;
2
+
3
+ /**
4
+ * Hello world!
5
+ *
6
+ */
7
+ public class App
8
+ {
9
+ public static void main ( String [] args )
10
+ {
11
+ System .out .println ( "Hello World!" );
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh .substitution ;
2
+
3
+ import junit .framework .Test ;
4
+ import junit .framework .TestCase ;
5
+ import junit .framework .TestSuite ;
6
+
7
+ /**
8
+ * Unit test for simple App.
9
+ */
10
+ public class AppTest
11
+ extends TestCase
12
+ {
13
+ /**
14
+ * Create the test case
15
+ *
16
+ * @param testName name of the test case
17
+ */
18
+ public AppTest ( String testName )
19
+ {
20
+ super ( testName );
21
+ }
22
+
23
+ /**
24
+ * @return the suite of tests being tested
25
+ */
26
+ public static Test suite ()
27
+ {
28
+ return new TestSuite ( AppTest .class );
29
+ }
30
+
31
+ /**
32
+ * Rigourous Test :-)
33
+ */
34
+ public void testApp ()
35
+ {
36
+ assertTrue ( true );
37
+ }
38
+ }
Original file line number Diff line number Diff line change
1
+ package com .fangjia .fsh .user ;
2
+
3
+ /**
4
+ * Hello world!
5
+ *
6
+ */
7
+ public class App
8
+ {
9
+ public static void main ( String [] args )
10
+ {
11
+ System .out .println ( "Hello World!" );
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ package com .fangjia .user ;
2
+
3
+ import junit .framework .Test ;
4
+ import junit .framework .TestCase ;
5
+ import junit .framework .TestSuite ;
6
+
7
+ /**
8
+ * Unit test for simple App.
9
+ */
10
+ public class AppTest
11
+ extends TestCase
12
+ {
13
+ /**
14
+ * Create the test case
15
+ *
16
+ * @param testName name of the test case
17
+ */
18
+ public AppTest ( String testName )
19
+ {
20
+ super ( testName );
21
+ }
22
+
23
+ /**
24
+ * @return the suite of tests being tested
25
+ */
26
+ public static Test suite ()
27
+ {
28
+ return new TestSuite ( AppTest .class );
29
+ }
30
+
31
+ /**
32
+ * Rigourous Test :-)
33
+ */
34
+ public void testApp ()
35
+ {
36
+ assertTrue ( true );
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments