Skip to content

Commit 1d38dd7

Browse files
committed
Spring Boot 与 Dubbo 整合抽取的服务接口
1 parent 6b112b5 commit 1d38dd7

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# spring-boot-demo-dubbo-api
2+
3+
Spring Boot 与 Dubbo 整合抽取的服务接口
4+
5+
### pom.xml
6+
7+
```xml
8+
<?xml version="1.0" encoding="UTF-8"?>
9+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11+
<modelVersion>4.0.0</modelVersion>
12+
13+
<artifactId>spring-boot-demo-dubbo-api</artifactId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<packaging>jar</packaging>
16+
17+
<name>spring-boot-demo-dubbo-api</name>
18+
<description>Spring Boot 与 Dubbo 整合抽取的服务接口</description>
19+
20+
<parent>
21+
<groupId>com.xkcoding</groupId>
22+
<artifactId>spring-boot-demo-dubbo-parent</artifactId>
23+
<version>0.0.1-SNAPSHOT</version>
24+
<relativePath>../pom.xml</relativePath>
25+
</parent>
26+
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.springframework.boot</groupId>
31+
<artifactId>spring-boot-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
35+
36+
</project>
37+
```
38+
39+
### HelloService.java
40+
41+
```java
42+
package com.xkcoding.springbootdemodubboapi.service;
43+
44+
/**
45+
* <p>
46+
* HelloService
47+
* </p>
48+
*
49+
* @package: com.xkcoding.springbootdemodubboapi.service
50+
* @description: HelloService
51+
* @author: yangkai.shen
52+
* @date: Created in 2018/4/17 下午5:13
53+
* @copyright: Copyright (c) 2018
54+
* @version: V1.0
55+
* @modified: yangkai.shen
56+
*/
57+
public interface HelloService {
58+
String hello(String name);
59+
}
60+
```
61+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<artifactId>spring-boot-demo-dubbo-api</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>spring-boot-demo-dubbo-api</name>
11+
<description>Spring Boot 与 Dubbo 整合抽取的服务接口</description>
12+
13+
<parent>
14+
<groupId>com.xkcoding</groupId>
15+
<artifactId>spring-boot-demo-dubbo-parent</artifactId>
16+
<version>0.0.1-SNAPSHOT</version>
17+
<relativePath>../pom.xml</relativePath>
18+
</parent>
19+
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-maven-plugin</artifactId>
25+
</plugin>
26+
</plugins>
27+
</build>
28+
29+
</project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.xkcoding.springbootdemodubboapi.service;
2+
3+
/**
4+
* <p>
5+
* HelloService
6+
* </p>
7+
*
8+
* @package: com.xkcoding.springbootdemodubboapi.service
9+
* @description: HelloService
10+
* @author: yangkai.shen
11+
* @date: Created in 2018/4/17 下午5:13
12+
* @copyright: Copyright (c) 2018
13+
* @version: V1.0
14+
* @modified: yangkai.shen
15+
*/
16+
public interface HelloService {
17+
String hello(String name);
18+
}

spring-boot-demo-dubbo-parent/spring-boot-demo-dubbo-api/src/main/resources/application.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)