spring boot与dubbo的API依赖管理
This commit is contained in:
@@ -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>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.didispace.service;
|
||||
|
||||
/**
|
||||
* Created by zhaiyc on 2016/7/14.
|
||||
*/
|
||||
public interface ComputeService {
|
||||
|
||||
Integer add(int a, int b);
|
||||
|
||||
}
|
||||
+15
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user