Wesley13 Wesley13
3年前
jdk1.8u131 与jdk1.8u222 cpu获取方式的差异
JDK1.8u222的cpu获取方式intOSContainer::active\_processor\_count(){intquota\_count0,share\_count0;intcpu\_count,limit\_count;intresult;cpu\_countlimit\_cou
Wesley13 Wesley13
3年前
java反射
packagecom.reflect;importjava.lang.reflect.InvocationTargetException;/\\\反射学习\反射的功能就是类、对象,可以通过反射获取里面的方法、属性的功能\@authorAdministrator\\/public
虾米大王 虾米大王
3年前
java代码032
code033.jsp获取web.xml中的配置<%在tomcat的web.xml配置文件中,增加如下配置:urljdbc:mysql://127.0.0.1:3306/test%
Easter79 Easter79
3年前
SpringSecurityOAuth2(2)请求携带客户端信息校验,自定义异常返回,无权处理,token失效处理
上文地址:SpringSecurityOAuth2(1)(password,authorization\_code,refresh\_token,client\_credentials)获取token(https://my.oschina.net/u/3500033/blog/3080885"SpringSecurityOAuth2(1)(passwo
Wesley13 Wesley13
3年前
1.微信小程序里如何设置当地时间?
方法一:1.效果图!(https://oscimg.oschina.net/oscnet/70713c28ea7b6a54306f79034d1ba2bcafe.png)2.wxmlcode:<!pages/index/index.wxml<text当前时间:{{time}}</text<tex
Wesley13 Wesley13
3年前
1、简单排查java应用CPU飙高的线程问题
1\.获取要查看的进程的IDpsaux|grepxxx2\.查看此进程下的线程信息topHp<pidtopp<pid   按shifthtopHp<pid    3\.查看栈信息jstac
Stella981 Stella981
3年前
Scrapy 爬取知乎用户信息
程序逻辑图如下:!(https://static.oschina.net/uploads/space/2017/0616/162844_1luO_3264690.png)登录模块(获取cookie):encodingutf8importrequestsimportrei
Easter79 Easter79
3年前
TreeATE平台API说明
\_\_ate为TreeATE平台的接口对象,当前V1.x版本实现了以下几个方法。这些方法都是由测试脚本调用。例如:defsetup_suite1():__ate.OutputError("setup_suite1")ret__ate.GetUserName()__ate.OutputError("Ge
Wesley13 Wesley13
3年前
Java获取字符串的像素点阵并在命令行下打印输出
下面这个小程序可以获取字符串点阵并在命令行下打印输出:publicclassStringPixelUtils{privatestaticfinalMap<String,booleanlettersMapnewHashMap<();/在内存BufferedImage里输出文
Stella981 Stella981
3年前
MongoDb语法
查看当前都有哪些数据库showdbs;查看都有哪些集合showcollections 使用insert方法插入文档,以{}包注,文档是以键值对出现的,必须成对设置db.user.insert({"uid":1,"name":"luotianshuai","age":18,"salary":1})2、查询