mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 00:29:01 +00:00
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:
+2
-3
@@ -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}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user