09 2022 档案

摘要:@Configuration public class MyMvcConfig implements WebMvcConfigurer { @Override public void addViewControllers(ViewControllerRegistry registry) { /** 阅读全文
posted @ 2022-09-27 11:06 疾风儿 阅读(258) 评论(0) 推荐(0) 编辑
摘要:创建 public class MyInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse respo 阅读全文
posted @ 2022-09-27 10:59 疾风儿 阅读(19) 评论(0) 推荐(0) 编辑
摘要:@Configuration public class WebMvcConfig implements WebMvcConfigurer{ @Override public void addFormatters(FormatterRegistry registry){ Converter<Strin 阅读全文
posted @ 2022-09-23 10:42 疾风儿 阅读(61) 评论(0) 推荐(0) 编辑
摘要:HttpServletRequest 共享数据 @RequestMapping("/html1") public String testServletAPI(HttpServletRequest request) { request.setAttribute("id", "1"); return " 阅读全文
posted @ 2022-09-22 10:47 疾风儿 阅读(18) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示