摘要: <input type="hidden" name="_method" value="DELETE"/> 1. RestfulController.java 1 package com.cn.restful; 2 3 import org.springframework.stereotype.Con 阅读全文
posted @ 2023-10-04 20:01 空嘘一场 阅读(41) 评论(0) 推荐(0)
摘要: 1.优点 2.缺点 阅读全文
posted @ 2023-10-04 19:58 空嘘一场 阅读(69) 评论(0) 推荐(0)
摘要: @ControllerAdvice没有切点只有增强 1.全局统一异常处理类 1 package com.cn.globalexpction; 2 3 import org.springframework.ui.ModelMap; 4 import org.springframework.web.bi 阅读全文
posted @ 2023-10-04 19:55 空嘘一场 阅读(25) 评论(0) 推荐(0)
摘要: 1.拦截器接口 2.工作流程 3.配置拦截器 1 <!--配置拦截器(可多个)--> 2 <mvc:interceptors> 3 <mvc:interceptor> 4 <!--设置拦截器要拦截的url地址--> 5 <mvc:mapping path="/user/**"/> 6 <!--设置拦 阅读全文
posted @ 2023-10-04 19:51 空嘘一场 阅读(21) 评论(0) 推荐(0)