Html5InputTag.java 文件源码

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

项目:spring-mvc-toolkit 作者:
@Override
protected String getType()  {
    String type = javaToHtmlTypes.get(valueType);
    if (type != null) {
        return type;
    }
    type = "text";
    if (annotations != null) {
        if (annotations.containsKey(Email.class)) {
            type = "email";
        } else if (annotations.containsKey(URL.class)) {
            type = "url";
        } else if (annotations.containsKey(Max.class) || annotations.containsKey(Min.class)) {
            type = "number";
        }
    }
    return type;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号