aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/configuration')
-rw-r--r--juick-server/src/main/java/com/juick/server/configuration/SapeConfiguration.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/configuration/SapeConfiguration.java b/juick-server/src/main/java/com/juick/server/configuration/SapeConfiguration.java
index 53b29415..9727fbb1 100644
--- a/juick-server/src/main/java/com/juick/server/configuration/SapeConfiguration.java
+++ b/juick-server/src/main/java/com/juick/server/configuration/SapeConfiguration.java
@@ -18,6 +18,7 @@
package com.juick.server.configuration;
import org.springframework.beans.factory.annotation.Value;
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ru.sape.Sape;
@@ -26,8 +27,9 @@ import ru.sape.Sape;
* Created by vitalyster on 29.03.2017.
*/
@Configuration
+@ConditionalOnProperty("sape_user")
public class SapeConfiguration {
- @Value("${sape_user:secret}")
+ @Value("${sape_user:}")
private String token;
@Bean