Skip to content

Instantly share code, notes, and snippets.

@khamiltonuk
Created November 29, 2015 22:54
Show Gist options
  • Select an option

  • Save khamiltonuk/f3fc0107559171cd69e6 to your computer and use it in GitHub Desktop.

Select an option

Save khamiltonuk/f3fc0107559171cd69e6 to your computer and use it in GitHub Desktop.
Enabling MongoDB replica set
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