Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process
端口被占用了,你把另外的tomcat关闭,如果找不到,则打开任务管理器,结束"javaw.exe"这个进程,就没问题了。
在JAVA类中使用super来引用父类的成分,用this来引用当前对象,如果一个类从另外一个类继承,我们new这个子类的实例对象的时候,这个子类对象里面会有一个父类对象。怎么去引用里面的父类对象呢?使用super来引用,this指的是当前对象的引用,super是当前对象里面的父对象的引用。
20150806 日记
java遍历
public String addQSToMG(Document parameterDoc) throws Exception { Iterator<String> parameterstr = parameterDoc.keySet().iterator(); while (parameterstr.hasNext()) { String i = parameterstr.next(); if(parameterDoc.get(i)==""){ parameterDoc.append(i, null); } } return qs.addQSToMG(parameterDoc); }
public class UserQuotaSettingsTransferService { private UserQuotaSettingsTransfer qs = new UserQuotaSettingsTransfer(); private final String qsParaNameArr[] = { "渠道编号", "商户编号", "交易类型", "用户类型","协议交易标识","生效标识"}; // 添加 public String addQSToMG(Document parameterDoc) throws Exception { for(int i=0;i<qsParaNameArr.length ;i++){ if(parameterDoc.containsKey(qsParaNameArr[i]) && "".equals(parameterDoc.get(qsParaNameArr[i]))){ parameterDoc.put(qsParaNameArr[i], null); } } return qs.addQSToMG(parameterDoc); } }