Make @ConfigurationProperties available in @PostConstruct

Also means that persistence annotation processing can take advantage
of external properties bound in this way.
This commit is contained in:
Dave Syer
2014-01-30 10:14:30 +00:00
parent 99a2338323
commit 3e9457ea8e
3 changed files with 50 additions and 16 deletions

View File

@@ -16,7 +16,8 @@
package sample.data.mongo;
import java.io.IOException;
import static org.junit.Assert.assertTrue;
import java.net.ConnectException;
import org.junit.Rule;
@@ -24,8 +25,6 @@ import org.junit.Test;
import org.springframework.boot.test.OutputCapture;
import org.springframework.core.NestedCheckedException;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link SampleMongoApplication}.
*