Skip to main content

Data mapping

Custom type mapping

Scenes: there are 10 attributes in com.baomidou.mybatisplus.extension.plugins.pagination.Page, but we just need size and current property.

A total of 2 values need to be set for custom type mapping.

Java Type is the corresponding object type. It must contain the package name and class name.


Default value must be in json format

{ "size": 10, "current": 1 }

Default type mapping

This configuration determines that the basic java type will be resolved to the appropriate value, supporting modification.

Ignore data mapping

This configuration determines whether the corresponding class is resolved or not and requires full path of java class(packageName+className)

Last update: