随笔分类 -  java后端

摘要:@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) 编辑
摘要:为什么要使用Spring Boot? 在使用Spring框架进行开发的过程中,需要配置很多Spring框架包的依赖。springboot主要是简化了spring的使用难度,降低了对配置文件的要求 Spring Boot 的主要优点 独立运行:Spring Boot内嵌了各种servlet容器,Tom 阅读全文
posted @ 2022-07-21 17:28 疾风儿 阅读(66) 评论(0) 推荐(0) 编辑
摘要:List,Set,Map三者的区别 List :存储的元素是有序的、可重复的 Set : 存储的元素是⽆序的、不可重复的 Map : Key 是⽆序的、不可重复的,value 是⽆序的、可重复 List Arraylist : Object[] 数组 Vector : Object[] 数组 Lin 阅读全文
posted @ 2022-07-21 10:32 疾风儿 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1 public static void getJsonKey(Object obj,String listname){ 2 if(obj instanceof JSONObject){ 3 for (Map.Entry<String, Object> entry : ((JSONObject) o 阅读全文
posted @ 2022-06-01 15:37 疾风儿 阅读(3775) 评论(0) 推荐(0) 编辑

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