Kent_Sun Kent_Sun
4年前
idea运行junit测试程序报错command line is too long. shorten command line for
idea运行junit测试程序报错commandlineistoolong.shortencommandlinefor...解决方法在项目根目录.idea/workspace.xml文件中添加一行代码xml<componentname"PropertiesComponent" ... <propertyname"d
Wesley13 Wesley13
4年前
java开发中使用类
com.fasterxml.jackson.annotation.JsonView@JsonView使用步骤:1.使用接口来声明多个视图2.在值对象的get方法上指定视图3.在C
Wesley13 Wesley13
4年前
java web启动后执行初始化任务
写一个类继承ApplicationListener,可以直接引用下述代码,然后调用相应的方法。packagecom.linewell.system;importcom.linewell.cache.ApplicationData;importorg.springframework.context.Applica
Kent_Sun Kent_Sun
4年前
java中List数组遍历删除
List数组遍历删除环境jdk8junit单元测试正解java//正解1,jdk自带的addAll方法@Testpublicvoidtest18(){Stringstrs{"12","34","56","78","90"};List<StringlistAr
Stella981 Stella981
4年前
SparkSQL UDF两种注册方式:udf() 和 register()
调用sqlContext.udf.register()此时注册的方法只能在sql()中可见,对DataFrameAPI不可见用法:sqlContext.udf.register("makeDt",makeDT(_:String,_:String,_:String))示例:defmakeDT(date:Stri
Wesley13 Wesley13
4年前
Java多线程基础
(1)传统使用类Thread和接口Runnable实现 1\.在Thread子类覆盖的run方法中编写运行代码方式一 newThread(){@Overridepublicvoidrun(){while(true){try{Thread.sleep(2
Stella981 Stella981
4年前
RocketMQ之Pull消费者客户端启动
Pull消费者客户端(主动拉取消息的消费者)即构造了DefaultMQPullConsumer对象,DefaultMQPullConsumer继承了ClientConfig类。我们先看其构造方法javaviewplaincopypublicDefaultMQPullConsumer(finalStringconsumer
Wesley13 Wesley13
4年前
nodom2改造
首先增加了Object的clone方法,代码如下:/对象复制@paramexpKey不复制的键正则表达式或名@return复制的对象/Object.prototype.clonefunc
敏捷开发 敏捷开发
1年前
实践了上万次,原来这些才是敏捷测试需要遵循的原则
与传统的阶段性测试不同的是,敏捷测试能够将测试集成到整个软件开发过程中,尽早、及时地发现缺陷,帮助交付有价值的高质量产品。传统测试与敏捷测试的比较大的区别在于:在瀑布方法中,测试只能在开发结束后进行;在敏捷方法中,测试是贯穿在整个开发过程中的,同时可以在需
贾蔷 贾蔷
8个月前
力扣145题:二叉树的后序遍历, 解题思路与C++实现
题目介绍力扣第145题要求实现一个函数,该函数接收一个二叉树的根节点,并返回该树的后序遍历结果。后序遍历是一种遍历二叉树的算法,其顺序为:先遍历左子树,是右子树,是根节点。解题思路分析解题时,我们可以使用递归或迭代的方法。递归方法较为直观,但可能导致栈溢出