More @Conditionals to prevent error if bootstrap disabled

If user disables bootstrap configuration
(spring.cloud.bootstrap.enabled:false) we have to anticipate some
beans will be missing.

Fixes gh-65
This commit is contained in:
Dave Syer
2015-01-19 16:51:53 +00:00
parent 3d1bc33f8e
commit 55f04aaa38
4 changed files with 41 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ import org.springframework.test.context.web.WebAppConfiguration;
@IntegrationTest({"server.port:0", "spring.config.name:configserver", "spring.cloud.config.server.git.uri:file:./target/repos/config-repo"})
@WebAppConfiguration
@ActiveProfiles("test")
public class ApplicationTests {
public class VanillaConfigServerIntegrationTests {
@Value("${local.server.port}")
private int port;