小凡156

博客园 首页 新随笔 联系 订阅 管理

2019年10月30日 #

摘要: 后端服务的实体对象增加了几个参数,其中包含(Integer类型)。前端在传参时,Integer参数是下拉列表,getValue()=null, 把null传到后端接口,就出现了400 解决办法:因为参数是非必填的,所以在传参时进行判断,如果为null,则不传 阅读全文
posted @ 2019-10-30 18:38 小凡156 阅读(133) 评论(0) 推荐(0) 编辑

摘要: 1 默认构造方法 分配一个新的线程对象 2 这个构造器和上面的#Thread(ThreadGroup,Runnable,String)方法有相同作用,其中线程名是新生成的名称 3 自动生成名称的格式为Thread-n,其中n是一个整数 4 /** 5 * Allocates a new {@code Thread} object. This constructor has the same 6 * 阅读全文
posted @ 2019-10-30 12:41 小凡156 阅读(343) 评论(0) 推荐(0) 编辑

摘要: 初始化线程的核心方法 参数:ThreadGroup(线程组) Runnable 阅读全文
posted @ 2019-10-30 09:24 小凡156 阅读(509) 评论(0) 推荐(0) 编辑