- 遇到僵尸进程,怎么处理---学习笔记
summer@彤妈
性能优化linux
僵尸进程解释当iowait升高时,进程很可能因为得不到硬件的响应,而长时间处于不可中断状态。从ps或者top命令的输出中,你可以发现它们都处于D状态,也就是不可中断状态(UninterruptibleSleep)。既然说到了进程的状态,进程有哪些状态你还记得吗?我们先来回顾一下。top和ps是最常用的查看进程状态的工具,我们就从top的输出开始。下面是一个top命令输出的示例,S列(也就是Stat
- Boot header格式描述详细信息。CSU DMA用于数据传输。安全流开关允许数据移动。PL配置通过PCAP接口。PL bit流包含设备配置数据。
行者..................
FPGA
在Bootheader中的一些重要字段包括:-Reservedforinterrupts:用于存储中断相关信息,特别是在LQSPI地址空间中的默认0x01F中断向量被更改时,在XIP启动模式下使用。-Quad-SPI宽度检测:用于描述Quad-SPI宽度的字段。-加密状态:用于标识AES密钥来源,包括不加密、红密钥、黑密钥等。-FSBL执行地址:FSBL执行的起始地址。-源偏移:PMUFW和FSB
- CCS配置MSPM0G3507(八)GPIO中断方式模拟编码器计数与测速
kaneki_lh
MSPM0G3507学习记录单片机嵌入式硬件
因为MSPM0G3507只有TimerG8有QEI功能,当需要外接多个编码器时,可采用GPIO中断方式实现计数。一.sysconfig(1)BasicConfig1.创建一组GPIO,并加入两个引脚进行配置(两个引脚的配置是一样的)2.将引脚设置为输入模式3.设置为浮空输入(2)InterruptConfig1.使能中断2.设置为上升沿触发(3)PinMux选择要使用的引脚二.代码1.初始化vol
- 观测线程状态-java
轻率的保罗
多线程-Javajava多线程线程状态
观测线程状态线程状态有的书籍叫线程生命周期。通过代码演示,观测线程状态:创建线程myThread用到了lambda表达式,详细了解点击这里:传送门。//观察线程的状态publicclassTestState{publicstaticvoidmain(String[]args)throwsInterruptedException{ThreadmyThread=newThread(()->{//创建线
- Arduino控制电机转动,并读取编码器数据
唐豆豆*
Arduino控制算法单片机嵌入式硬件
一、编码器数据读取方法本文采用编码器是1000线,即电机转一圈编码器发出1000个脉冲,每个脉冲对应的角度为0.36°。编码器为2相,A相和B相相位相差90°,可用于检验转向以及计算脉冲个数。如下图所示,当A为上升沿时,B为高电平,A为下降沿时,B为低电平。实际计数时,需要用到Arduino中断函数二、Arduino中断函数1.attachInterrupt(digitalPinToInterru
- 六号线晚报0523
z0nk1n
天气:晴风力:微风callable1.callable是一个可以带返回值的多线程接口,类似runnable,ruannable执行无返回值的run方法,callable执行有返回值的call方法publicclassCallableTest{publicstaticvoidmain(String[]args)throwsExecutionException,InterruptedException
- 【Linux命令手册】速查、备忘录
Uncle 城
linux服务器运维计算机网络网络centos网络协议
系统信息和性能查看常⽤命令作⽤uname-a查看内核/OS/CPU信息uname-r查看内核版本uname-m查看处理器架构arch查看处理器架构hostname查看计算机名who显示当前登录系统的⽤户whoami显示登录时的⽤户名whoami显示当前⽤户名cat/proc/version查看linux版本信息cat/proc/cpuinfo查看CPU信息cat/proc/interrupts查看
- 面试题(13)
月夕花晨374
算法数据结构java链表开发语言
中断(Interrupts)11.中断是嵌入式系统中重要的组成部分,这导致了很多编译开发商提供一种扩展—让标准C支持中断。具代表事实是,产生了一个新的关键字__interrupt。下面的代码就使用了__interrupt关键字去定义了一个中断服务子程序(ISR),请评论一下这段代码的。__interruptdoublecompute_area(doubleradius){doublearea=PI
- 3.2.6 盘古开天地start_kernel
aspirestro三水哥
InterruptPipelinelinuxarmIPIPEXenomai
点击查看系列文章=》InterruptPipeline系列文章大纲-CSDN博客3.2内核初始化(盘古开天地)3.2.1内核初始化的神话3.2.2从头(Head)开始3.2.3从头初始化到身体3.2.4宇之内存的空分复用3.2.5宙之CPU的时分复用3.2.6盘古开天地start_kernel3.2.6盘古开天地start_kernel__primary_switched最后义无反顾的跳转到了st
- 2.3.6 返回用户空间
aspirestro三水哥
InterruptPipelinelinux运维服务器
InterruptPipeline系列文章大纲-CSDN博客2.3el0_irq2.3.1el0_irq代码框架2.3.2kernel_entry0与kernel_exit02.3.3el0_irq_naked与enable_da_f2.3.4trace_hardirqs_off与trace_hardirqs_on2.3.5irq_handler2.3.6返回用户空间目录InterruptPipe
- 2.2 ARM64异常处理
aspirestro三水哥
InterruptPipelinelinuxarm嵌入式硬件
InterruptPipeline系列文章大纲-CSDN博客1异常级别转换异常发生时,如何处理呢?异常级别分为4级,其中EL0不处理异常。当EL0发生异常时,会进入更高的异常级别进行处理。ARM64包含4个异常级别:EL0:非特权模式,常用来跑应用程序;EL1:特权模式,常用来跑内核;EL2:虚拟化监控程序,例如hypervisor;EL3:安全模式,例如securemonitor;同步异常一般在
- GD32F4:外部中断
银河也是河281
单片机嵌入式硬件
一、名词解释NVIC:嵌套向量中断控制器,全称Nestedvectoredinterruptcontroller。EXTI:外部中断和事件控制器。二、优先级2.1中断分组(不建议看)一般情况下中断分为5组,如下图1。当优先级分组为3时,该组所有的中断有三位设置抢占优先级,范围为0~7,有一位设置子优先级,范围0~1,数值越小,优先级越高。中断分组在HAL库初始化中被HAL_Init()设置,一般情
- GD32F4xx中断点灯实验
k1184591768
单片机stm32
中断原理介绍中断基础知识1.NVIC中断系统CortexR-M4集成了嵌套式矢量型中断控制器(NestedVectoredInterruptController(NVIC))来实现高效的异常和中断处理。NVIC实现了低延迟的异常和中断处理,以及电源管理控制NVIC:中断系统REXIT:外部中断中断系统包括外部中断,另外还有定时器中断,串口中断和DMA中断等2.EXTI外部中断EXTI(中断/事件控
- 一个操作系统的设计与实现——第21章 高级可编程中断控制器
Tony小周
嵌入式硬件
21.1什么是高级可编程中断控制器我们已经使用过型号为8259A的可编程中断控制器(ProgrammableInterruptController,PIC)。在单CPU计算机中,中断的处理相对简单:所有的外设和CPU都连接在PIC上即可。然而,如果计算机中不止一个CPU,情况就会变得复杂起来。以双CPU为例:键盘中断会被每个CPU分别接收一次,这是错误的时钟中断会统一广播给各个CPU,这样做虽然没
- 你的程序真的被中断了吗?
AI_Frank
java
在Java中,当一个线程被中断时,可能会触发InterruptedException。当这个异常被抛出时,Java会自动清除线程的中断标志。这是为了防止异常被连续抛出导致程序陷入无限循环,同时也为开发者提供了一个清晰的控制点来处理中断。异常清除中断标志位的原因防止异常被重复处理当线程在调用一些阻塞操作(如Thread.sleep、Object.wait、BlockingQueue.take等)时被
- 《ACRN: A Big Little Hypervisor for IoT Development》阅读笔记
智商25的憨憨
操作系统
目录1.Introduction2.SystemArchitecture3.设计与实现3.1SpatialIsolation(空间隔离)3.1.1CPU核心分区3.1.2内存分区3.2TemporalIsolation(时间隔离)3.2.1I/OFLow3.2.2InterruptDeliveryFlow(中断传送流)3.3丰富的嵌入式I/O虚拟化3.4实时性3.5安全性4.实验4.1实验设置5.
- 【OS】AUTOSAR OS Counter实现原理(上篇)
汽车电子嵌入式
AUTOSAR精进之路AUTOSAROSCounter英飞凌
目录前言正文1.STM比较器的中断控制2.OsCounter类别及其适用场景3.OsCounter配置3.1OsCounter配置容器3.2OsDriver配置容器3.3PIT和HRT3.3.1PeriodicalInterruptTimer(PIT)3.3.2HighResolutionTimer(HRT)3.4Counters类别汇总3.5PIT和PFRT对比4.OsCounter具体实现前言
- 线程基础
packet
一、线程状态二、线程的中断机制每个线程都有一个打扰标志。这里分两种情况:线程在sleep,wait,join,lock.lockInterruptibly,此时如果别的进程调用此进程的interrupt()方法,此线程会被唤醒并被要求处理InterruptedException;(thread在做IO操作时也可能有类似行为,见javathreadapi)此线程在运行中,则不会收到提醒。但是此线程的
- Python 异常处理
A 八方
python开发语言
python提供了两个非常重要的功能来处理python程序在运行中出现的异常和错误。你可以使用该功能来调试python程序。异常处理断言(Assertions)python标准异常异常名称描述BaseException所有异常的基类SystemExit解释器请求退出KeyboardInterrupt用户中断执行(通常是输入^C)Exception常规错误的基类StopIteration迭代器没有更
- 3.2 内核初始化(盘古开天地)
aspirestro三水哥
InterruptPipelinelinux服务器运维
InterruptPipeline系列文章大纲-CSDN博客3.2.1内核初始化的神话Linux内核的初始化流程,很多文章都有分析,自己也学习了很多次,总是感觉记忆不深刻。突发奇想,觉得整个初始化流程与中国神话传说盘古开天地特别的契合,所以尝试着更生动形象的分析一下内核初始化化流程。天和地还没有分开的时候,宇宙混沌一片,从外表看像一个大鸡蛋。这个蛋形混沌宇宙可以用“0”来非常形象的表示。Linux
- java线程之Lock的使用
dimdark
目标:大致介绍一下java.util.concurrent.locks包下的类,接口及其常用方法1.Lock接口Lock接口使用Lock接口的最佳模式:publicvoidmethod()throwInterruptedException{try{lock.lock();//lock.lockUninterruptibly();}finally{lock.unlock();}}用户必须手动释放Lo
- STM32 LL库 定时器捕获NEC红外解码
xiaoqi976633690
stm32嵌入式硬件单片机
/*USERCODEBEGINHeader*//*********************************************************************************@filestm32f1xx_it.c*@briefInterruptServiceRoutines.********************************************
- [Python进阶] 捕获Ctrl + C中断
0思必得0
#二Python-进阶python开发语言Python进阶错误中断
2.23捕获Ctrl+C中断有时候在开发程序的时候,不希望用户不小心或者就是不想让用户通过快捷键Ctrl+C中断程序,这个时候就可以通过捕获这个操作来进行处理。在Python中,Ctrl+C的中断快捷键是可以通过try语句中的KeyboardInterrupt来进行捕获的。下面是一段示例:importsignaldefsignal_handler(Signal,Frame):#在这里处理Ctrl+
- C++面试:CPU的上下文切换、中断处理与系统调度
Thomas_Lbw
c++c++面试
目录一、上下文切换(ContextSwitching)1.切换基础2.减少切换使用线程池使用异步编程使用共享内存二、中断处理(InterruptHandling)中断基础中断发生过程三、系统调度(Scheduling)进程调度调度算法先来先服务(FirstCome,FirstServed,FCFS)最短作业优先(ShortestJobFirst,SJF)轮转调度(RoundRobin)多级反馈队列
- vue调用本地.bat文件方法
樱花不及姑娘你
vue
asyncrunRakuuIDE(caseFlowNm){this.runInterrupted=false;//判定是否打开还是关闭if(!(awaitthis.showCommonConfirm("INF0006"))){return;}varextras=process.cwd()+"/src/extras";varcldPro=require("child_process");varcmd
- 普中51单片机学习(十五)
Ccjf酷儿
51单片机学习单片机
实验代码#include"reg52.h"#include"intrins.h"typedefunsignedcharu8;typedefunsignedintu16;sbitled=P2^0;sbitk3=P3^2;voiddelay(u16i){while(i--);}voidInit0Init(){EA=1;EX0=1;IT0=1;}voidInt0()interrupt0{delay(10
- STM32F1 - 中断系统
零号-轩工
STM32F1-外设驱动stm32嵌入式硬件单片机
Interrupt1>硬件框图2>NVIC中断管理3>EXTI中断管理3.1>EXTI与NVIC3.2>EXTI内部框图4>外部中断实验4.1>实验概述4.2>程序设计5>中断向量表6>总中断开关7>总结1>硬件框图NVIC:NestedVectoredInterruptController【嵌套向量中断控制器】管理内核外设和片上外设的所有中断功能;EXTI:ExternalInterrupt【外
- JDK1.8的HashMap死循环复现
JWASX
源码分析java数据结构数据库
文章目录前言正文前言下面聊聊JDK1.7HashMap的死循环问题,在这之前首先要知道JDK1.7的HashMap底层是数组+链表的形式的正文JDK1.8解决了JDK1.7的头插法导致死循环的问题,但是JDK1.8同样会死循环,下面我们用两个线程进行演示abstractclassTest{publicstaticvoidmain(String[]args)throwsInterruptedExce
- JavaEE_____多线程2
漫天 星辰
JavaEEjava-ee
线程常见的构造方法一.多线程1.线程常见的构造方法1.1具体使用:1.2线程分组使用2.线程常用属性3.守护线程4.守护线程VS用户线程二.线程的常用方法1.线程等待join——李四接班2.线程的终止2.1使用自定义标识符终止线程2.2使用interrupt()终止线程2.3isinterrupted和interrupted的区别:3.yield让出执行权4.获取当前线程5.问题:在主线程中创建两
- JavaEE_01_多线程基础
AbyssPraise
JavaEEjava-eejava
目录程序和进程?进程IP地址线程进程线程的区别Thread创建线程四种方法Thread类的方法start()方法构造方法核心属性中断线程通过共享变量中断通过静态方法`Thread.interrupted()`或成员方法:`Thread.currentThread().isInterrupted()`Thread常用方法线程的状态线程安全JMM:线程安全需要满足的条件原子性可见性防止指令重排sync
- 关于旗正规则引擎下载页面需要弹窗保存到本地目录的问题
何必如此
jsp超链接文件下载窗口
生成下载页面是需要选择“录入提交页面”,生成之后默认的下载页面<a>标签超链接为:<a href="<%=root_stimage%>stimage/image.jsp?filename=<%=strfile234%>&attachname=<%=java.net.URLEncoder.encode(file234filesourc
- 【Spark九十八】Standalone Cluster Mode下的资源调度源代码分析
bit1129
cluster
在分析源代码之前,首先对Standalone Cluster Mode的资源调度有一个基本的认识:
首先,运行一个Application需要Driver进程和一组Executor进程。在Standalone Cluster Mode下,Driver和Executor都是在Master的监护下给Worker发消息创建(Driver进程和Executor进程都需要分配内存和CPU,这就需要Maste
- linux上独立安装部署spark
daizj
linux安装spark1.4部署
下面讲一下linux上安装spark,以 Standalone Mode 安装
1)首先安装JDK
下载JDK:jdk-7u79-linux-x64.tar.gz ,版本是1.7以上都行,解压 tar -zxvf jdk-7u79-linux-x64.tar.gz
然后配置 ~/.bashrc&nb
- Java 字节码之解析一
周凡杨
java字节码javap
一: Java 字节代码的组织形式
类文件 {
OxCAFEBABE ,小版本号,大版本号,常量池大小,常量池数组,访问控制标记,当前类信息,父类信息,实现的接口个数,实现的接口信息数组,域个数,域信息数组,方法个数,方法信息数组,属性个数,属性信息数组
}
&nbs
- java各种小工具代码
g21121
java
1.数组转换成List
import java.util.Arrays;
Arrays.asList(Object[] obj); 2.判断一个String型是否有值
import org.springframework.util.StringUtils;
if (StringUtils.hasText(str)) 3.判断一个List是否有值
import org.spring
- 加快FineReport报表设计的几个心得体会
老A不折腾
finereport
一、从远程服务器大批量取数进行表样设计时,最好按“列顺序”取一个“空的SQL语句”,这样可提高设计速度。否则每次设计时模板均要从远程读取数据,速度相当慢!!
二、找一个富文本编辑软件(如NOTEPAD+)编辑SQL语句,这样会很好地检查语法。有时候带参数较多检查语法复杂时,结合FineReport中生成的日志,再找一个第三方数据库访问软件(如PL/SQL)进行数据检索,可以很快定位语法错误。
- mysql linux启动与停止
墙头上一根草
如何启动/停止/重启MySQL一、启动方式1、使用 service 启动:service mysqld start2、使用 mysqld 脚本启动:/etc/inint.d/mysqld start3、使用 safe_mysqld 启动:safe_mysqld&二、停止1、使用 service 启动:service mysqld stop2、使用 mysqld 脚本启动:/etc/inin
- Spring中事务管理浅谈
aijuans
spring事务管理
Spring中事务管理浅谈
By Tony Jiang@2012-1-20 Spring中对事务的声明式管理
拿一个XML举例
[html]
view plain
copy
print
?
<?xml version="1.0" encoding="UTF-8"?>&nb
- php中隐形字符65279(utf-8的BOM头)问题
alxw4616
php中隐形字符65279(utf-8的BOM头)问题
今天遇到一个问题. php输出JSON 前端在解析时发生问题:parsererror.
调试:
1.仔细对比字符串发现字符串拼写正确.怀疑是 非打印字符的问题.
2.逐一将字符串还原为unicode编码. 发现在字符串头的位置出现了一个 65279的非打印字符.
 
- 调用对象是否需要传递对象(初学者一定要注意这个问题)
百合不是茶
对象的传递与调用技巧
类和对象的简单的复习,在做项目的过程中有时候不知道怎样来调用类创建的对象,简单的几个类可以看清楚,一般在项目中创建十几个类往往就不知道怎么来看
为了以后能够看清楚,现在来回顾一下类和对象的创建,对象的调用和传递(前面写过一篇)
类和对象的基础概念:
JAVA中万事万物都是类 类有字段(属性),方法,嵌套类和嵌套接
- JDK1.5 AtomicLong实例
bijian1013
javathreadjava多线程AtomicLong
JDK1.5 AtomicLong实例
类 AtomicLong
可以用原子方式更新的 long 值。有关原子变量属性的描述,请参阅 java.util.concurrent.atomic 包规范。AtomicLong 可用在应用程序中(如以原子方式增加的序列号),并且不能用于替换 Long。但是,此类确实扩展了 Number,允许那些处理基于数字类的工具和实用工具进行统一访问。
 
- 自定义的RPC的Java实现
bijian1013
javarpc
网上看到纯java实现的RPC,很不错。
RPC的全名Remote Process Call,即远程过程调用。使用RPC,可以像使用本地的程序一样使用远程服务器上的程序。下面是一个简单的RPC 调用实例,从中可以看到RPC如何
- 【RPC框架Hessian一】Hessian RPC Hello World
bit1129
Hello world
什么是Hessian
The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols. Because it is a binary p
- 【Spark九十五】Spark Shell操作Spark SQL
bit1129
shell
在Spark Shell上,通过创建HiveContext可以直接进行Hive操作
1. 操作Hive中已存在的表
[hadoop@hadoop bin]$ ./spark-shell
Spark assembly has been built with Hive, including Datanucleus jars on classpath
Welcom
- F5 往header加入客户端的ip
ronin47
when HTTP_RESPONSE {if {[HTTP::is_redirect]}{ HTTP::header replace Location [string map {:port/ /} [HTTP::header value Location]]HTTP::header replace Lo
- java-61-在数组中,数字减去它右边(注意是右边)的数字得到一个数对之差. 求所有数对之差的最大值。例如在数组{2, 4, 1, 16, 7, 5,
bylijinnan
java
思路来自:
http://zhedahht.blog.163.com/blog/static/2541117420116135376632/
写了个java版的
public class GreatestLeftRightDiff {
/**
* Q61.在数组中,数字减去它右边(注意是右边)的数字得到一个数对之差。
* 求所有数对之差的最大值。例如在数组
- mongoDB 索引
开窍的石头
mongoDB索引
在这一节中我们讲讲在mongo中如何创建索引
得到当前查询的索引信息
db.user.find(_id:12).explain();
cursor: basicCoursor 指的是没有索引
&
- [硬件和系统]迎峰度夏
comsci
系统
从这几天的气温来看,今年夏天的高温天气可能会维持在一个比较长的时间内
所以,从现在开始准备渡过炎热的夏天。。。。
每间房屋要有一个落地电风扇,一个空调(空调的功率和房间的面积有密切的关系)
坐的,躺的地方要有凉垫,床上要有凉席
电脑的机箱
- 基于ThinkPHP开发的公司官网
cuiyadll
行业系统
后端基于ThinkPHP,前端基于jQuery和BootstrapCo.MZ 企业系统
轻量级企业网站管理系统
运行环境:PHP5.3+, MySQL5.0
系统预览
系统下载:http://www.tecmz.com
预览地址:http://co.tecmz.com
各种设备自适应
响应式的网站设计能够对用户产生友好度,并且对于
- Transaction and redelivery in JMS (JMS的事务和失败消息重发机制)
darrenzhu
jms事务承认MQacknowledge
JMS Message Delivery Reliability and Acknowledgement Patterns
http://wso2.com/library/articles/2013/01/jms-message-delivery-reliability-acknowledgement-patterns/
Transaction and redelivery in
- Centos添加硬盘完全教程
dcj3sjt126com
linuxcentoshardware
Linux的硬盘识别:
sda 表示第1块SCSI硬盘
hda 表示第1块IDE硬盘
scd0 表示第1个USB光驱
一般使用“fdisk -l”命
- yii2 restful web服务路由
dcj3sjt126com
PHPyii2
路由
随着资源和控制器类准备,您可以使用URL如 http://localhost/index.php?r=user/create访问资源,类似于你可以用正常的Web应用程序做法。
在实践中,你通常要用美观的URL并采取有优势的HTTP动词。 例如,请求POST /users意味着访问user/create动作。 这可以很容易地通过配置urlManager应用程序组件来完成 如下所示
- MongoDB查询(4)——游标和分页[八]
eksliang
mongodbMongoDB游标MongoDB深分页
转载请出自出处:http://eksliang.iteye.com/blog/2177567 一、游标
数据库使用游标返回find的执行结果。客户端对游标的实现通常能够对最终结果进行有效控制,从shell中定义一个游标非常简单,就是将查询结果分配给一个变量(用var声明的变量就是局部变量),便创建了一个游标,如下所示:
> var
- Activity的四种启动模式和onNewIntent()
gundumw100
android
Android中Activity启动模式详解
在Android中每个界面都是一个Activity,切换界面操作其实是多个不同Activity之间的实例化操作。在Android中Activity的启动模式决定了Activity的启动运行方式。
Android总Activity的启动模式分为四种:
Activity启动模式设置:
<acti
- 攻城狮送女友的CSS3生日蛋糕
ini
htmlWebhtml5csscss3
在线预览:http://keleyi.com/keleyi/phtml/html5/29.htm
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>攻城狮送女友的CSS3生日蛋糕-柯乐义<
- 读源码学Servlet(1)GenericServlet 源码分析
jzinfo
tomcatWebservlet网络应用网络协议
Servlet API的核心就是javax.servlet.Servlet接口,所有的Servlet 类(抽象的或者自己写的)都必须实现这个接口。在Servlet接口中定义了5个方法,其中有3个方法是由Servlet 容器在Servlet的生命周期的不同阶段来调用的特定方法。
先看javax.servlet.servlet接口源码:
package
- JAVA进阶:VO(DTO)与PO(DAO)之间的转换
snoopy7713
javaVOHibernatepo
PO即 Persistence Object VO即 Value Object
VO和PO的主要区别在于: VO是独立的Java Object。 PO是由Hibernate纳入其实体容器(Entity Map)的对象,它代表了与数据库中某条记录对应的Hibernate实体,PO的变化在事务提交时将反应到实际数据库中。
实际上,这个VO被用作Data Transfer
- mongodb group by date 聚合查询日期 统计每天数据(信息量)
qiaolevip
每天进步一点点学习永无止境mongodb纵观千象
/* 1 */
{
"_id" : ObjectId("557ac1e2153c43c320393d9d"),
"msgType" : "text",
"sendTime" : ISODate("2015-06-12T11:26:26.000Z")
- java之18天 常用的类(一)
Luob.
MathDateSystemRuntimeRundom
System类
import java.util.Properties;
/**
* System:
* out:标准输出,默认是控制台
* in:标准输入,默认是键盘
*
* 描述系统的一些信息
* 获取系统的属性信息:Properties getProperties();
*
*
*
*/
public class Sy
- maven
wuai
maven
1、安装maven:解压缩、添加M2_HOME、添加环境变量path
2、创建maven_home文件夹,创建项目mvn_ch01,在其下面建立src、pom.xml,在src下面简历main、test、main下面建立java文件夹
3、编写类,在java文件夹下面依照类的包逐层创建文件夹,将此类放入最后一级文件夹
4、进入mvn_ch01
4.1、mvn compile ,执行后会在