摘要: 1、Task使用启动方式 static void Method1() { Task task1 = new Task(() => { //在这里写要具体干的事 Console.WriteLine($"Task1开启的线程ID={Thread.CurrentThread.ManagedThreadId 阅读全文
posted @ 2025-06-27 14:49 关陈七 阅读(6) 评论(0) 推荐(0)
摘要: public class ApplyObject { private String id ; private String name; } 1、使用post方法调用前端传递参数如果是一个object的话,如{id:'1',name:'2222'}后端参数接收的话,需要使用@RequestBody A 阅读全文
posted @ 2022-10-21 08:49 关陈七 阅读(583) 评论(0) 推荐(0)
摘要: 1、@RestController @RestController 相当于@Controller+@ResponseBody两个注解的结合,返回json数据不需要在方法前面加@ResponseBody注解了,但使用@RestController这个注解,就不能返回jsp,html页面,视图解析器无法 阅读全文
posted @ 2022-09-30 09:58 关陈七 阅读(29) 评论(0) 推荐(0)
摘要: 具体参考:https://www.cnblogs.com/ngy0217/p/11080840.html List<CollectionPricePointInfo> collectionPricePointInfos = collectionPricePointInfoService.select 阅读全文
posted @ 2022-03-31 11:39 关陈七 阅读(106) 评论(0) 推荐(0)
摘要: 1、日期处理 @Override public Integer getSendMsgNum(String userMobile) { Date now = new Date(); Calendar calendar = new GregorianCalendar(); calendar.setTim 阅读全文
posted @ 2022-03-31 11:00 关陈七 阅读(31) 评论(0) 推荐(0)
摘要: 用漫画告诉你—什么是HashMap? 众所周知,HashMap是一个用于存储Key-Value键值对的集合,每一个键值对也叫做Entry。这些个键值对(Entry)分散存储在一个数组当中,这个数组就是HashMap的主干。 HashMap数组每一个元素的初始值都是Null。 对于HashMap,我们 阅读全文
posted @ 2022-01-10 09:34 关陈七 阅读(54) 评论(0) 推荐(0)
摘要: vue-router导航切换时,如果两个路由都渲染同个组件,组件会重(chong)用,组件的生命周期钩子(created)不会再被调用, 使得组件的一些数据无法根据 path的改变得到更新 因此: 1、我们可以在watch中监听路由的变化,当路由变化时,重新调用created中的内容 2、在init 阅读全文
posted @ 2021-12-16 14:10 关陈七 阅读(267) 评论(0) 推荐(0)
摘要: 修改功能需要注意到隐藏路由 1、路由部分 { path: '/teacher', component: Layout, redirect: '/teacher/table', name: '讲师管理', meta: { title: '讲师管理', icon: 'example' }, childr 阅读全文
posted @ 2021-12-14 17:26 关陈七 阅读(419) 评论(0) 推荐(0)
摘要: 1、html部分 <template> <div class="app-container"> <el-form label-width="130px"> <el-form-item label="讲师名称"> <el-input v-model="teacher.name"></el-input> 阅读全文
posted @ 2021-12-14 17:15 关陈七 阅读(218) 评论(0) 推荐(0)
摘要: 删除功能需要弹出确认框 1、html部分 <el-table-column label="操作" width="200" align="center"> <template slot-scope="scope"> <el-button type="danger" size="mini" icon=" 阅读全文
posted @ 2021-12-13 17:36 关陈七 阅读(250) 评论(0) 推荐(0)