From 8fdbb5188d38a3f3420c5018281f3fd0259203e1 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Tue, 20 Dec 2016 00:38:17 +0700 Subject: @Repository should uses when DataAccessException translation is need --- .../java/com/juick/components/service/NotificationsTokenService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-notifications/src/main/java/com/juick/components/service') diff --git a/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java b/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java index c34f322b..9ea3fd3e 100644 --- a/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java +++ b/juick-notifications/src/main/java/com/juick/components/service/NotificationsTokenService.java @@ -6,7 +6,7 @@ import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; -import org.springframework.stereotype.Repository; +import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import javax.inject.Inject; @@ -15,7 +15,7 @@ import java.util.List; /** * Created by vitalyster on 15.12.2016. */ -@Repository +@Service public class NotificationsTokenService extends BaseRestService implements TokenService { @Inject -- cgit v1.2.3