![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
踏雪追风555
这个作者很懒,什么都没留下…
展开
-
获取到一个只属于该类报错信息,,并保存到日志中
import org.apache.log4j.Logger;import java.util.Arrays;import java.util.List;/** * @author taxuezhuifeng * @method get class exception information * */public class ForError { public static void forError(Class c,Exception e){ Logger log.原创 2020-05-26 10:40:13 · 109 阅读 · 0 评论 -
获取指定包名下的所有子包
import java.io.File;import java.net.URL;import java.util.HashSet;import java.util.Set;public class AllPackages { public static void main(String[] args) { String packageName = "com.heyi.niniyoupin.test.nologin"; Set<String> .原创 2020-05-21 11:02:58 · 566 阅读 · 0 评论 -
appium java 坐标定位
@Test public void imageInformationTest() throws InterruptedException { driver.findElement(By.xpath("//*[@text='我的']")).click(); Thread.sleep(2000); TouchAction actio...原创 2020-03-07 15:47:22 · 951 阅读 · 0 评论 -
java list map set
List 有两种 ArrayList和LinkedList,vector和stackSet 有三种,HashSet-->LinkedHashSet和TreeSetMap有三种,HashMap和TreeMap,WeakHashMapList的用法:list允许有重复数据,ArrayList的优点是随机访问元素, LinkedList:对...原创 2019-03-29 10:21:47 · 128 阅读 · 0 评论 -
post向后台发送数据,数据为String
URL:http://localhost:8080/sendsms/checkSmspostman数据:number:15564462917 code:156232后端为:原创 2019-04-26 17:42:48 · 4817 阅读 · 0 评论