Skip to content

v0.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Aug 06:30
· 58 commits to refs/heads/main since this release

What's Changed

Provides a new way to set up JSON Handler.

The following JSON Handlers are supported:

  • com.meilisearch.sdk.json.GsonJsonHandler
  • com.meilisearch.sdk.json.JacksonJsonHandler

Annotation based configuration

public class CustomConfiguration extends MeilisearchConfiguration {

    @Override
    public JsonHandler jsonHandler() {
        return new JacksonJsonHandler();
    }
}

The default JSON Handler is GsonJsonHandler.
You can use other JSON Handler by overriding the jsonHandler() method.

Namespace based configuration

<bean id="jsonHandler" class="com.meilisearch.sdk.json.GsonJsonHandler"/>

The default JSON Handler is not provided by the XML Namespace.
JSON Handler must be defined as a bean with id="jsonHandler".

🛠️ Maintenance