diff --git a/src/main/java/com/loafle/overflow/container/service/Service.java b/src/main/java/com/loafle/overflow/container/service/Service.java index ea1bc9e..af96a6b 100644 --- a/src/main/java/com/loafle/overflow/container/service/Service.java +++ b/src/main/java/com/loafle/overflow/container/service/Service.java @@ -80,7 +80,7 @@ public class Service implements InitializingBean, ApplicationContextAware { return null; } String name = a.value(); - if ("" == name.trim()) { + if (name.isEmpty()) { name = method.getName(); } return name;