ValidationDemoApp.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:act-demo-apps 作者:
@GetAction("/digits")
public void digits(@Digits(integer = 4, fraction = 2) String str, ActionContext context, @Digits(integer = 3, fraction = 0) Integer num) {
    if (context.hasViolation()) {
        renderText("Error(s): \n%s", context.violationMessage());
    }
    renderText("digits success with %s and %s", str, num);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号