diff options
author | Vitaly Takmazov | 2017-03-29 00:51:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-29 00:51:53 +0300 |
commit | 0e74fe51b55080929650f0ff6adbfc4539ac10b4 (patch) | |
tree | 59b66290d230328d2146175838ae9ed15f9873e9 /juick-notifications | |
parent | e561d0c4faefce7f0e32e15a5667b6512c6341d7 (diff) |
fix string quoting in Spring Value annotation
Diffstat (limited to 'juick-notifications')
2 files changed, 4 insertions, 4 deletions
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 |