首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Invoke中接口步骤不能重名

2012-11-22 
Invoke中接口方法不能重名若为:public class AveragePowerServiceInvoke extends ServiceInvoke {public s

Invoke中接口方法不能重名
若为:

public class AveragePowerServiceInvoke extends ServiceInvoke {       public static interface Invoke {        public List showBusiList() throws Exception;        public Pagination queryAvgPower(AveragePower averagePower,                Pagination pagination) throws Exception;        public ResultSet queryAvgPower(AveragePower averagePower)                throws Exception;    }       public static Invoke getInstance(HttpServletRequest request)            throws Exception {        return (Invoke) getService(request, Invoke.class);    }}

出现错误:

在WEB配置文件中me-manaInfo-service应用服务器配置信息中地址eirs.me.manaInfo.assessment.service.AveragePowerService端口queryAvgPower对应的SSL端口没有配置
错误原因:接口中方法重载了,不能重载
public class AveragePowerServiceInvoke extends ServiceInvoke {       public static interface Invoke {        public List showBusiList() throws Exception;        public Pagination queryAvgPower(AveragePower averagePower,                Pagination pagination) throws Exception;        public ResultSet queryAvgPowerRs(AveragePower averagePower)                throws Exception;    }       public static Invoke getInstance(HttpServletRequest request)            throws Exception {        return (Invoke) getService(request, Invoke.class);    }}

热点排行