Created
November 29, 2015 22:54
-
-
Save khamiltonuk/f3fc0107559171cd69e6 to your computer and use it in GitHub Desktop.
Enabling MongoDB replica set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.springframework.data.mongodb.config; | |
| public final class ServerAddressPropertyEditorRegistrar implements PropertyEditorRegistrar { | |
| @Override | |
| public void registerCustomEditors(PropertyEditorRegistry registry) { | |
| registry.registerCustomEditor(ServerAddress[].class, new ServerAddressPropertyEditor()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment