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); }}