All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.test.dubbo.service.MathService Maven / Gradle / Ivy

The newest version!
package com.test.dubbo.service;

import java.util.List;

import com.test.dubbo.model.User;

public interface MathService {
	
	/**
	 * 简单示例
	 * @param a
	 * @param b
	 * @return
	 */
	Integer add(Integer a,Integer b);
	
	/**
	 * 复杂对象示例
	 * @param args
	 * @return
	 */
	List toList(Object ... args);
	
	/**
	 * 抛出异常测试
	 */
	void throwThrowable() throws RuntimeException;
	
	User getUser(User user);
}