spring boot与dubbo的API依赖管理

This commit is contained in:
程序猿DD
2016-07-14 14:52:05 +08:00
committed by zhaiyongchao
parent aae309df5a
commit 90dcb48bbb
15 changed files with 413 additions and 0 deletions
@@ -0,0 +1,17 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.didispace</groupId>
<artifactId>compute-service</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>compute-api</artifactId>
<name>compute-api</name>
<packaging>jar</packaging>
</project>
@@ -0,0 +1,10 @@
package com.didispace.service;
/**
* Created by zhaiyc on 2016/7/14.
*/
public interface ComputeService {
Integer add(int a, int b);
}
@@ -0,0 +1,15 @@
package com.didispace.service.impl;
import com.didispace.service.ComputeService;
/**
* Created by zhaiyc on 2016/7/14.
*/
public class ComputeServiceImpl implements ComputeService {
@Override
public Integer add(int a, int b) {
return a + b;
}
}