Wesley13 Wesley13
3年前
java+selenium+maven+IntelliJ IDEA 搭建简单的UI自动化测试环境
1\.用IntelliJIDEA新建一个maven工程2\.在pom.xml中添加依赖:<dependency<groupIdorg.seleniumhq.selenium</groupId<artifactIdseleniumjava</artifactId
Wesley13 Wesley13
3年前
java将数据库中查询到的数据导入到Excel表格
1.Maven需要的依赖<!https://mvnrepository.com/artifact/org.apache.poi/poi<dependency<groupIdorg.apache.poi</groupId<artifactIdpoi</artifactId
Wesley13 Wesley13
3年前
java编译器对string常量表达式的处理和优化
首先把问题摆出来,先看这个代码 String a  "ab"; String b  "a"  "b"; System.out.println((a  b));打印结果会是什么?类似这样的问题,有人考过我,我也拿来考过别人(蛮好玩的,大家也可以拿来问人玩),一般答案会是以下几种: 1.true 
Wesley13 Wesley13
3年前
java将字符串存入GridF并通过id或文件名查询
importstaticorg.bson.codecs.configuration.CodecRegistries.fromProviders;importstaticorg.bson.codecs.configuration.CodecRegistries.fromRegistries;importjava.
Wesley13 Wesley13
3年前
Java,JavaScript和ABAP通过代码取得当前代码的调用栈Callstack
JavaStackTraceElementstackThread.currentThread().getStackTrace();System.out.println("Callstacktest");for(inti0;i<stack.length;i
Wesley13 Wesley13
3年前
JAVA实现AES 解密报错Input length must be multiple of 16 when decrypting with padded cipher
<divid"cnblogs\_post\_body"class"blogpostbody"<h3加密代码</h3<p </p<divclass"cnblogs\_Highlightershgutter"<div<divid"highlighter\_969460"class"syntaxhighlighter
Wesley13 Wesley13
3年前
Java核心技术 卷1 基础知识—Swing用户组件及JAR
《第12章Swing用户组件》Swing设计者采用了模型视图控制器(modelviewcontroller,MVC)模式来设计用户组件它限制了一个对象拥有的功能数量,在设计组件时一般实现三个独立的类:模型(model):存储内容,必须实现改变内容或者查找内容的方法,模型是完全不可见的视图(view):显示内容,即
Stella981 Stella981
3年前
App 集成支付宝支付接口(三)Java服务器端配置
官方文档移动支付:https://doc.open.alipay.com/doc2/detail?treeId59&articleId103563&docType1(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fdoc.open.alipay.com
Wesley13 Wesley13
3年前
Java程序员值得探索的五种新编程语言,Python是首选?
我们程序(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.kuaixunai.com%2Ftag2728.html)员就要常换常新,老用一种语言是会厌倦的。学什么语言能我们精进不已?一起来看本文。!(https://imgservice.csdnimg