2 つの BigDecimal フィールドを含む複雑なオブジェクトがあります
public class Test
{
private BigDecimal property1;
private BigDecimal property2;
//setter and getter method
}
ユーザーがproperty1
春のフォームに入力すると、 の 10% になるはずですproperty2
。この検証は、春の検証フレームワークを使用して行う必要があります。