From 0e74fe51b55080929650f0ff6adbfc4539ac10b4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 29 Mar 2017 00:51:53 +0300 Subject: fix string quoting in Spring Value annotation --- .../juick/components/configuration/NotificationsAppConfiguration.java | 4 ++-- .../java/com/juick/components/configuration/XMPPConfiguration.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'juick-notifications/src/main') diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java index d6b4fa1e..b8730bfb 100644 --- a/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java +++ b/juick-notifications/src/main/java/com/juick/components/configuration/NotificationsAppConfiguration.java @@ -27,9 +27,9 @@ import java.util.List; @PropertySource("classpath:juick.conf") @ComponentScan(basePackages = {"com.juick.components.service"}) public class NotificationsAppConfiguration { - @Value("${api_user:'juick'}") + @Value("${api_user:juick}") private String apiUser; - @Value("${api_password:'secret'}") + @Value("${api_password:secret}") private String apiSecret; @Bean diff --git a/juick-notifications/src/main/java/com/juick/components/configuration/XMPPConfiguration.java b/juick-notifications/src/main/java/com/juick/components/configuration/XMPPConfiguration.java index 22b3d561..4cba533d 100644 --- a/juick-notifications/src/main/java/com/juick/components/configuration/XMPPConfiguration.java +++ b/juick-notifications/src/main/java/com/juick/components/configuration/XMPPConfiguration.java @@ -14,11 +14,11 @@ import rocks.xmpp.extensions.component.accept.ExternalComponent; public class XMPPConfiguration { @Value("${push_jid}") private String pushJid; - @Value("${xmpp_host:'localhost'}") + @Value("${xmpp_host:localhost}") private String xmppHost; @Value("${xmpp_port:5347}") private int xmppPort; - @Value("${push_xmpp_password:'secret'}") + @Value("${push_xmpp_password:secret}") private String xmppPushPassword; @Bean -- cgit v1.2.3