From 0a47022611e9ade7b4cf04e8d2783e966610e136 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Feb 2018 10:54:42 +0300 Subject: server and tests now runnable without config --- .../src/main/java/com/juick/www/configuration/WebSecurityConfig.java | 2 +- .../src/main/java/com/juick/www/configuration/WwwAppConfiguration.java | 2 +- .../main/java/com/juick/www/configuration/WwwServletConfiguration.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'juick-www/src/main/java/com/juick/www/configuration') diff --git a/juick-www/src/main/java/com/juick/www/configuration/WebSecurityConfig.java b/juick-www/src/main/java/com/juick/www/configuration/WebSecurityConfig.java index 613b4c92..bde85ee4 100644 --- a/juick-www/src/main/java/com/juick/www/configuration/WebSecurityConfig.java +++ b/juick-www/src/main/java/com/juick/www/configuration/WebSecurityConfig.java @@ -43,7 +43,7 @@ import javax.annotation.Resource; public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Value("${auth_remember_me_key}") private String rememberMeKey; - @Value("${web_domain:juick.com}") + @Value("${web_domain:localhost}") private String webDomain; @Resource private UserService userService; diff --git a/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java b/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java index 205c0627..c30f5a92 100644 --- a/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java +++ b/juick-www/src/main/java/com/juick/www/configuration/WwwAppConfiguration.java @@ -45,7 +45,7 @@ import java.util.HashMap; * Created by aalexeev on 11/22/16. */ @Configuration -@PropertySource("classpath:juick.conf") +@PropertySource(value = "classpath:juick.conf", ignoreResourceNotFound = true) @EnableCaching public class WwwAppConfiguration { @Inject diff --git a/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java b/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java index e5119f4f..60a3b9cc 100644 --- a/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java +++ b/juick-www/src/main/java/com/juick/www/configuration/WwwServletConfiguration.java @@ -46,7 +46,6 @@ import java.util.concurrent.TimeUnit; */ @Configuration @ComponentScan(basePackages = {"com.juick.www"}) -@PropertySource("classpath:juick.conf") @EnableWebMvc public class WwwServletConfiguration extends BaseWebConfiguration { -- cgit v1.2.3