package com.zhongcheng.dubbo.interf;
import com.zhongcheng.dubbo.model.Person;
/**
* Hello world!
*
*/
public interface GetPerson {
String speak(Person person);
}
package com.zhongcheng.dubbo.interf;
import com.zhongcheng.dubbo.model.Person;
public interface GrowAge {
Person growPersonAge(Person person);
}
package com.zhongcheng.dubbo.model;
import java.io.Serializable;
public class Person implements Serializable
{
/**
*
*/
private static final long serialVersionUID =
-7408906574534643319L;
private String age;
private String name;
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
<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
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.zhongcheng</groupId>
<artifactId>DubboInterface</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>DubboInterface</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
</dependencies>
</project>
|