From 7d4f3cfecf611c41b82a1aeddf22ade62ec246a4 Mon Sep 17 00:00:00 2001 From: kamhung <22250530@qq.com> Date: Thu, 3 Dec 2015 15:22:35 +0800 Subject: [PATCH] --- src/com/wentch/redkale/net/sncp/SncpClient.java | 2 +- src/com/wentch/redkale/service/DataSourceService.java | 1 + src/com/wentch/redkale/util/ResourceFactory.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/wentch/redkale/net/sncp/SncpClient.java b/src/com/wentch/redkale/net/sncp/SncpClient.java index 9b4aae628..bb153a183 100644 --- a/src/com/wentch/redkale/net/sncp/SncpClient.java +++ b/src/com/wentch/redkale/net/sncp/SncpClient.java @@ -163,7 +163,7 @@ public final class SncpClient { Method old = actionids.get(actionid); if (old != null) { if (old.getDeclaringClass().equals(method.getDeclaringClass())) - throw new RuntimeException(serviceClass.getName() + " have one more same action(Method=" + method + ", actionid=" + actionid + ")"); + throw new RuntimeException(serviceClass.getName() + " have one more same action(Method=" + method + ", " + old + ", actionid=" + actionid + ")"); continue; } actionids.put(actionid, method); diff --git a/src/com/wentch/redkale/service/DataSourceService.java b/src/com/wentch/redkale/service/DataSourceService.java index b93bd0f25..85928d033 100644 --- a/src/com/wentch/redkale/service/DataSourceService.java +++ b/src/com/wentch/redkale/service/DataSourceService.java @@ -15,6 +15,7 @@ import javax.annotation.*; * * @author zhangjx */ +@AutoLoad(false) public class DataSourceService implements DataSource, Service { @Resource(name = "$") diff --git a/src/com/wentch/redkale/util/ResourceFactory.java b/src/com/wentch/redkale/util/ResourceFactory.java index 7bea3aa84..bf909833b 100644 --- a/src/com/wentch/redkale/util/ResourceFactory.java +++ b/src/com/wentch/redkale/util/ResourceFactory.java @@ -173,7 +173,7 @@ public final class ResourceFactory { } if (ns == null) continue; if (ns.getClass().isPrimitive() || ns.getClass().isArray() || ns.getClass().getName().startsWith("java")) continue; - if (flag) this.inject(ns, list); + if (flag) this.inject(ns, attachment, list); continue; } if (Modifier.isFinal(field.getModifiers())) continue;