aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/configuration
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-26 22:19:55 +0300
committerGravatar Vitaly Takmazov2018-09-26 22:19:55 +0300
commit3dd5abdfd328a9dc95152639cf1773336502a23b (patch)
tree50a2df323f83fa14971e2014574d6fd0d6d595a9 /juick-server/src/main/java/com/juick/server/configuration
parent80ad470b209eb11dd0225bb8c4d053787d6e4b4a (diff)
make SapeConfiguration conditional on sape token
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