The default initial value of field e.g.:
private Integer code = 200;//default 200
Configuration:
field.default.value=#default
DemoDto.java
public class DemoDto{
/**
* price of demo
* @default 666
*/
@NotNull
private Float price;
...
}
Export as API response:
name | type | required | default | desc | other |
---|---|---|---|---|---|
price | number | YES | 666 | price |