10 2015 档案
摘要:生成在[min,max]之间的随机整数Random random = new Random();random.nextInt(maxValue + 1) + minValue; //nextInt(a),是指[0,a)的值或者使用://RandomUtils.nextInt(minValue,max...
阅读全文
摘要:1.pom.xml添加本地的jar包:假设将包htmlparser.jar放入了项目下的lib目录中 -> ${project}/lib/htmlparser.jar com.htmlparser htmlparser 2.0 system ${project.base...
阅读全文
摘要:1.显示一个类的所有方法在Project框中最右边有一个齿轮状的设置按钮,增加“show members”即可。2.设置文件模板:File->Settings3.设置Java编译环境:Setting->Compiler->Java Compiler4.默认编码FILE ->Settings-> Fi...
阅读全文
摘要:1.Ctrl + Alt + T用if、while、try catch来围绕选中的代码行2.Ctrl + T/Ctrl + Alt + B跳转到方法实现处3.Ctrl + Alt + O优化import自动去除无用的import语句4.Ctrl+Shift+F格式化代码5.System.out.pr...
阅读全文
摘要:数据库登录:mysql -h IP -P 端口 -u 账号 –p回车,然后输入密码创建用户:mysql> insert into mysql.user(Host,User,Password) values('localhost','用户名',password('密码'));//刷新系统权限表mysq...
阅读全文
摘要:数据库登录:mysql -h IP -P 端口 -u 账号 –p回车,然后输入密码使用制定的数据库:use 数据库名执行sql脚本:1.如果sql脚本与执行登录命令不在同一个目录,如当前目录是/home/ubuntu/test,脚本存在/home/ubuntu/init/,则执行:source /...
阅读全文
摘要:通过微信js-sdk提供的卡卷领取接口,用户可以获取卡卷:wx.addCard({ cardList: [{ cardId: '', cardExt: '' }], // 需要添加的卡券列表 success: function (res) { ...
阅读全文

浙公网安备 33010602011771号