摘要:
一、在get方法上面加入自定义的注解 二、写自定义接口 三、写验证接口的实现类 阅读全文
摘要:
一、pom文件引入 二、参数类的get方法上面加注解 三、 补充: 可以使用的注解 阅读全文
摘要:
一、pom加入如下配置 二、加注解 在请求参数前面加入@Valid,后面跟上BindingResult BindResult result必须紧跟着前面的@ModelAttribute, 否则会出错 方法上面加 三、写验证类 类要实现Validator,引入的是sring包的。 supprots返回 阅读全文
摘要:
<mvc:resources location="/css/" mapping="/css/**"/> location的值表示项目webapp下的目录,mapping浏览器访问的地址,可以不一样 阅读全文
摘要:
一个比较详细清晰的SSM框架搭建 http://blog.csdn.net/gebitan505/article/details/44455235 阅读全文