From a5955f36a3ec973e8f6d05211e1f82ad7a88ea28 Mon Sep 17 00:00:00 2001 From: William <87509674+WilliamSESE@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:47:45 +0800 Subject: [PATCH] Add missing annotation @Service This class is mainly responsible for the realization of business logic, which is recommended to use @service in the Spring framework. Moreover it can help you to achieve IOC. --- .../chapter_07/rxjava2jdbc/wallet/WalletServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter-07/section-10-rxjava2-jdbc/src/main/java/org/rpis5/chapters/chapter_07/rxjava2jdbc/wallet/WalletServiceImpl.java b/chapter-07/section-10-rxjava2-jdbc/src/main/java/org/rpis5/chapters/chapter_07/rxjava2jdbc/wallet/WalletServiceImpl.java index 697c360..47383e1 100644 --- a/chapter-07/section-10-rxjava2-jdbc/src/main/java/org/rpis5/chapters/chapter_07/rxjava2jdbc/wallet/WalletServiceImpl.java +++ b/chapter-07/section-10-rxjava2-jdbc/src/main/java/org/rpis5/chapters/chapter_07/rxjava2jdbc/wallet/WalletServiceImpl.java @@ -12,7 +12,7 @@ import java.util.Arrays; import java.util.Comparator; - +import org.springframework.stereotype.Service; import static java.lang.String.format; /** @@ -20,6 +20,7 @@ * Transactions are too hard for rxjava2-jdbc :-( */ @Slf4j +@Service public class WalletServiceImpl implements WalletService { public static final String SELECT_BY_OWNER = "select id, owner, balance, deposits, withdraws from wallet where owner=:owner";