博客来源:
有时候不理解自己电脑运行时环境,那么可以以使用如下方法获取到电脑中的配置信息
String[] srr = {"os.name","os.arch","os.version","file.separator","path.separator","line.separator",
"java.home","java.class.version","java.class.path","java.library.path","java.compiler"
,"java.io.tmpdir","java.ext.dirs","user.name","user.home","user.dir"
, "java.version", "java.vendor", "java.vendor.url", "java.vm.specification.version", "java.vm.specification.vendor", "java.vm.specification.name","file.encoding"
, "java.vm.version", "java.vm.vendor", "java.vm.name", "java.specification.version", "java.specification.vendor", "java.specification.name"
};
System.out.println(srr.length);
for (int i = 0; i < srr.length; i++) {
String s = (i+1)+"\t"+srr[i]+":\t"+ System.getProperty(srr[i]);
System.out.println(s);
}
29
1 os.name: Windows 10
2 os.arch: amd64
3 os.version: 10.0
4 file.separator: \
5 path.separator: ;
6 line.separator:7 java.home: C:\Program Files\Java\jdk1.8.0_191\jre
8 java.class.version: 52.0
9 java.class.path: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
10 java.library.path: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
11 java.compiler: null
12 java.io.tmpdir: C:\Users\21052\AppData\Local\Temp\
13 java.ext.dirs: C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
14 user.name: xxxxxxxxxxxxxxxxxxxxxxxxxx
15 user.home: C:\Users\21052
16 user.dir: D:\MySoftware\Spring\component
17 java.version: 1.8.0_191
18 java.vendor: Oracle Corporation
19 java.vendor.url: http://java.oracle.com/
20 java.vm.specification.version: 1.8
21 java.vm.specification.vendor: Oracle Corporation
22 java.vm.specification.name: Java Virtual Machine Specification
23 file.encoding: UTF-8
24 java.vm.version: 25.191-b12
25 java.vm.vendor: Oracle Corporation
26 java.vm.name: Java HotSpot(TM) 64-Bit Server VM
27 java.specification.version: 1.8
28 java.specification.vendor: Oracle Corporation
29 java.specification.name: Java Platform API Specification
文章浏览阅读549次。前端基础问题小总结(三)CSS盒子模型由里到外有哪几部分组成?标准盒子模型和IE盒子模型有啥区别?通过什么方式进行转变?一个盒子模型分成几部分:- 内容区(content)- 内边距(padding)- 边框(border)- 外边距(margin)标准盒子模型: padding、border所占的空间不在width、height范围内IE盒子模型: width包括content尺寸+padding+border的总和响应式布局和自应式布局有啥区别?响应式布局:响应式布局就是实现不同屏幕分辨率_user-scalable=no
文章浏览阅读1.1k次。使用mysqldump命令备份时候,--all-databases 可以备份所有的数据库。 使用ignore-table 还可以排除制定的表。但是,mysqldump没有参数可以排除数据库的。要备份的数据库少的时候,可以通过mysqldump -uroot -p123456 --databases db1 db2 db3 > mysqldump.sql 这样来备份。但是假如数据库有数十个的话..._mysql dump文件导入怎么跳过系统库
文章浏览阅读2.1k次。记录MacBookPro重装系统流程_macbookpro重装系统
文章浏览阅读8.5k次,点赞14次,收藏156次。IMU与GPS传感器ESKF融合定位文章目录IMU与GPS传感器ESKF融合定位1、代码整体框架说明2、主要函数介绍2.1 LocalizationWrapper构造函数2.2 滤波算法进行预测2.3 通过GPS位置测量数据更新系统的状态3. 结果评价参考文献:分别在两个终端下运行命令:rosbag play utbm_robocar_dataset_20180502_noimage1.bagroslaunch imu_gps_localization imu_gps_localization.l_imu_gps_localization
文章浏览阅读618次。校验不能输入汉字_input正则不能输入中文
文章浏览阅读2.6k次。 由于项目中决定使用OWC,主要使用电子表格对象模型 和图表工作区对象模型,现在将使用过程学习到的一些东西记录下来,以备后用。电子表格对象模型(Spreadsheet ),看起来跟Excel就是孪生兄弟,初步使用并不困难。先看看下面一个实例,是不是非常easy:html xmlns:o="urn:schemas-microsoft-com:office:office"xm_spreadsheet1
文章浏览阅读4.9k次。使用fastJson导入的pom依赖<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.68</version> <scope>compile</scope></dependency>代码展示:import com.al_fastjson数组转为字符串有斜杠
文章浏览阅读397次。代码 prop 绑定的是v-mode对应的数据 ,否则校验不想生效。事件往data里面添加数据。_vue下拉框动态绑定数据
文章浏览阅读566次。问题描述:在使用sudo apt update时报错E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)E: Unable to lock directory /var/lib/apt/lists/解决方法:sudo rm /var/lib/apt/lists/lock_apt upgrade unable to
文章浏览阅读1.7k次。问题登场Warning: the objects were exported by XXZX_QUERY, not by youimport done in ZHS16GBK character set and AL16UTF16 NCHAR character set. importing XXZX_QUERY's objects into JHK. importing XXZX_QU..._ora32588
文章浏览阅读3k次,点赞3次,收藏24次。Transformer Meets Tracker:Exploiting Temporal Context for Robust Visual Tracking前言一、Abstract二、Contribution三、Method1、Revisting Tracking Frameworks前言论文代码一、Abstract在视频对象跟踪中,连续帧之间存在丰富的时间上下文,在现有的跟踪器中已大大忽略了这些上下文。在这项工作中,我们桥接单个视频帧,并通过一个用于稳固对象跟踪的转换器架构探索它们的时间上下_transformer meets tracker: exploiting temporal context for robust visual tra
文章浏览阅读180次。函数定义//extract tokens from strings#include <string.h>char *strtok(char *str, const char *delim);char *strtok_r(char *str, const char *delim, char **saveptr);使用strtok解析提取字符串;如aaa,bbb,ccc,ddd, delim=",", 一次分割出字符串"aaa", “bbb”, “ccc”, “ddd”,使用的时候第_strtok_r' 'strtok