- Java技术专题-Java Agent探针的技术介绍(1)
洛神灬殇
前提概要Java调式、热部署、JVM背后的支持者JavaAgent:各个JavaIDE的调试功能,例如eclipse、IntelliJ;热部署功能,例如JRebel、XRebel、spring-loaded;各种线上诊断工具,例如Btrace、Greys,还有阿里的Arthas;各种性能分析工具,例如VisualVM、JConsole等;Agent的介绍JavaAgent直译过来叫做Java代理,
- 九:什么是热部署,为什么要用这个?
董小姐orz(娜)
javaspringbootspring
什么是热部署(可以线上使用,但是最好不要,易于黑客攻击)①应用正在运行的时候,不需要重新启动应用。②对于Java应用程序来说,热部署就是在运行时更新java类文件好处:不需要手工启动应用,提高本地开发效率。常见实现热部署的方式①Jrebel②SpringLoaded③Spring-boot-devtools演示一下第三种方法:第一步:配置pom.xmlorg.springframework.boo
- IDEA与Eclipse的Jrebel热部署方案
cjp1016
注册获取Jrebel激活码jrebel是付费的,但是有个官方免费的途径,打开网址:https://my.jrebel.com/image.png注册获取激活码image.pngIDEA配置使用,热部署spring-boot项目打开JRebel面板,勾选支持的spring-boot项目image.png这样jrebel会在对应的resources目录底下生成一个rebel.xml文件。当修改Java
- jrebel activation
e43ef8a56980
http://jrebel.autoseasy.cn/jrebel/b136b653-31f0-44ca-bbef-2eb5e58daf2bactivatedonmymac
- JRebel激活-nginx版本
wang812745312
nginx运维java
nginx转发流量(代替其他网上说的那个工具)proxy_passhttp://idea.lanyus.com;工具激活填写内容说明:第一行的激活网址是:http://127.0.0.1:8888/正确的GUID。GUID可以通过专门的网站来生成(点击打开)。第二行的邮箱地址只要格式正确即可。
- 6款超好用的IDEA插件,开发必备!
Xayh55
intellij-ideajavaide
今天给大家介绍几款开发必备的IDEA插件:JRebel热部署插件,让你在修改完代码后,不用再重新启动,很实用!但是,不是免费的,需要大家继续发挥下自己的聪明才智才能happy的使用JsonParser厌倦了打开浏览器格式化和验证JSON?为什么不安装JSON解析器并在IDE中使用离线支持呢?JSON解析器是一个用于验证和格式化JSON字符串的轻量级插件Apipost-Helper2.0Apipos
- 【idea】几个不错的idea插件让我码速又快了
王果冻ddd
intellij-ideajavaide
目录前言Gradianto插件jclasslibBytecodeviewer插件GrepConsole插件GenerateAllSetter插件GsonFormat插件JRebelandXRebel插件leetcodeeditor插件mavenhelper插件SequenceDiagram插件Statistic插件Translation插件前言idea可以说是java开发者使用的最多的开发工具了,
- idea使用Jrebel时逐渐卡顿不能运行
appearappear
intellijidea
现象启动项目时,日志输出了一般就没动静了,静音断点后,立马执行完成本地调用接口时,接口半天没有响应勉强用了好几个月,没发现原因方案点击『查看断点』,取消Java方法断点,只要勾选一个,项目就运行卡死
- idea使用笔记(三):插件使用
Geroge1226
以下列举了开发过程中常用的插件列表,欢迎大佬们继续推荐!一、常见优秀插件列表1.lombak--使idea能够正常使用lombak包2.freemybatis--mybatis插件方便操作mybatis文件跳转3.findbugs--代码bug查找4.RainbowBrackets--彩色括号,方便查看阅读代码5.jrebel--项目热部署6.keypromoter--快捷键提示工具7.GsonF
- jrebel IDEA 热部署
java 之路
intellij-ideajavaide
1下载2022.4.1JRebelandXRebel-IntelliJIDEsPlugin|Marketplace2选择下载好的zip离线安装IDEA插件重启IDEA3打开[Preference->JRebel&XRebel]菜单,输入GUIDaddress为https://jrebel.qekang.com/1e67ec1b-122f-4708-87d0-c1995dc0cdaa,邮件随便写,完
- 2023年JRebel最新激活方式
GitHub质检员
开发心得电脑intellij-ideaideaJrebelidea插件
2023年JRebel最新激活方式亲测使用方法2激活成功。JRebel介绍#JRebel是一款JVM插件,它使得Java代码修改后不用重启系统,立即生效。IDEA上原生是不支持热部署的,一般更新了Java文件后要手动重启Tomcat服务器,修改才能生效;所以推荐使用JRebel插件进行热部署。JRebel安装方式#1.插件仓库安装(推荐)#1、打开IDEA,选择File—>Settings—>Pl
- JRebel插件使用详解
c_gentle
一、JRebel简介JRebel是一套JavaEE开发工具。Jrebel可快速实现热部署,节省了大量重启时间,提高了个人开发效率。JRebel是一款JAVA虚拟机插件,它使得JAVA程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。JRebel使你能即时分别看到代码、类和资源的变化,你可以一个个地上传而不是一次性全部部署。当程序员在开发环境中对任何一个类或者资源作出修改的
- Intellij热部署插件JRebel
Jothan Zhong
javajava
Intellij热部署插件JRebel安装JRebel激活JRebel相关设置Intellij热部署插件JRebel项目需求,一直用eclipse的我,也要改用IDEA了,一开始,很不习惯。经过几天的慢慢摸索和习惯之后,发现IDEA确实很好用。dark的界面是我喜欢的,智能的提示也让写代码不再枯燥。遗憾的是IDEA本身没有集成热部署工具,一开始改动代码之后,都需要重新run或者debug,让开发效
- IntelliJ IDEA 配置 JRebel 实现热部署
-沐云枫-
intellij-ideaidea经验分享笔记
JRebel简介JRebel是国外团队开发的一款收费工具,JRebel允许开发团队在有限的时间内完成更多的任务修正更多的问题,发布更高质量的软件产品,JRebel可快速实现热部署,节省了大量重启时间,提高了个人开发效率。JRebel是一款JAVA虚拟机插件,它使得Java程序员能在不进行重部署的情况下,即时看到代码的改变对一个应用程序带来的影响。1.下载JRebel下载地址:JRebelandXR
- IDEA/JRebel实现内部/外部/远程Tomcat热部署Spring Boot
氷泠
IDEATomcatIDEA热部署CentOSSpringBoot
1概述所谓热部署,对于Java来说,就是在运行时更新Java类文件。IDEA可以使用自带的SpringBoot热部署的方式进行本地/远程热部署,或者使用JRebel进行本地/远程热部署,不过需要安装JRebelandXRebelforIntelliJ这个插件。本文将会介绍这两种方式来进行热部署,相信在看完之后,开发效率会大大提升。2环境IntelliJIDEA2019.3.1本地Tomcat9.0
- springboot 热插拔JRebel
m0_59476515
springbootjavaspring
SpringBoot支持热插拔。以下为其工作原理。JRebel链接重新加载静态内容有几种热重载选项。推荐的方法是使用spring-boot-devtools,因为它提供了额外的开发时特性,例如支持快速应用程序重启和LiveReload以及合理的开发时配置(例如模板缓存)。Devtools通过监视类路径的变化来工作。这意味着必须“构建”静态资源更改才能使更改生效。默认情况下,当您保存更改时,这会在E
- IDEA实现热部署
原来是好奇心
intellij-ideamaven
IDEA热部署下载热部署插件配置IDEA激活插件通过偏好设置找到JRebel&XRebel然后选择激活插件,打开jrebel激活面板,选择TeamURL(connecttoonlinelicensingservice),任意输入邮箱,地址激活.地址激活码:https://jrebel.qekang.com/b269986f-ec9f-4839-8467-25419592f1ef或者是http://
- java学习笔记汇总
王乐城愚人云端
1.springboot实现热部署方式一jrebel只要点击resources右键最下位,选择Jrebel--rebel.xml就会创建配置文件然后每次更新只需要cmd+F9就会自动更新修改过的地方2.springboot实现热部署方式二spring-boot-devtools在springboot下,使用这种方式更快!!!添加此依赖org.springframework.bootspring-b
- SpringBoot 在IDEA中实现热部署 (JRebel实用版)
Jothan Zhong
javaspringbootintellij-idea后端
JRebel简介:JRebel是与应用程序服务器集成的JVMJava代理,可使用现有的类加载器重新加载类。只有更改的类会重新编译并立即重新加载到正在运行的应用程序中,JRebel特别不依赖任何IDE或开发工具(除编译器外)。但是,与您的IDE紧密集成仍然很不错。请记住:只要您用新文件覆盖旧类文件,JRebel就会重新加载您的更改并减少重新部署的时间。顺便整理下步骤防止以后忘记:在Java开发的过程
- Eclipse安装Jrebel eclipse免重启加载项目
solly793755670
eclipsejavajrebel
每次修改JAVA文件都需要重新启动项目,加载时间太长,eclipse安装jrebel控件,避免重启项目节省时间。1、Help->EclipseMarketplace2、搜索jrebel3、Help->jrebel->Configuration配置jrebel4、激活jrebel5、在红色框中填入http://jrebel.com.cn/69972f4a-2911-46eb-87ed-7bbb086
- jrebel+eclipse+tomcat实现热部署(带破解)
青鱼入云
javajrebeltomcateclipse
jrebel+eclipse+tomcat实现热部署(带破解)搞了个jrebel准备热部署代码,方便以后开发web类型项目,网上找了一堆安装教程,各式各样的都有,尝试了几个,结果遇到了一堆问题,决定把正确流程贴出来。本流程是按照jrebel官网安装,但jrebel是收费的(虽然说有一个免费social版,但我没有搞出来),期间加入破解方法。第一步:下载jrebeltomcat和eclipse的安装
- idea利用JRebel插件,无需重启,实现Spring Boot项目热重载,节省开发时间和精力!
薛慕昭
intellij-ideaspringbootjava
插件介绍官方介绍翻译过来的意思是:JRebel是一款提高开发效率的工具,允许开发者立即重新加载代码更改。它跳过了在Java开发中常见的重新构建、重启和重新部署循环。JRebel能够让开发者在相同的时间内完成更多工作,并且在编码时能够保持状态。JRebel支持绝大多数真实世界的企业级Java技术栈,并且易于安装到现有的开发环境中。XRebel是一款用于Java开发的性能工具,为开发者提供实时性能洞察
- 实现 Spring Boot 项目热重载,无需重启,省时省力
全栈梦想家
Javaspringbootjava后端
实现SpringBoot项目热重载,无需重启,省时省力插件介绍通过JRebel插件实现SpringBoot项目热重载。类似于前端Webpack热重载功能无需重启,省时省力安装插件打开IDEA在插件中搜索:JRebel安装成功后重启IDEA激活插件因为这款插件是付费的,所以接下来需要激活该插件首先打开网站获取激活链接与邮箱:https://www.jpy.wang/page/jrebel.html紧
- springboot下xrebel的使用
后端架构进阶
1.xrebel官方文档:https://jrebel.com/software/xrebel/quick-start/#!/installation其实基本上可以按照文档开始了2.下载xrebel下载xrebel.png3.参数配置image.png4.配置xrebel到自己的idea中配置参数.png5.启动自己的项目即可image.png6.请求自己的接口,比如用postman调用一下ima
- IDEA热部署JRebel安装教程
小云很优秀
开发工具intellijidea
JRebel简介JRebel是一款实现热部署的开发工具,它可以允许你在启动程序时修改java代码直接进行编译生效,无须手动重启。热部署的实现会为你节省了大量重启时间,明显提高个人开发效率。安装JReable同其它插件安装一样,请按照以下步骤先行按照插件File——>Settings…——>Plugins——>Marketplace——>在搜索框中输入jrebel激活教程
- IDEA插件JRebel实现热部署
SugarPPig
笔记intellijidea
1、什么是热部署?有什么好处?热部署就是正在运行状态的应用,修改了源码之后,在不重新启动的情况下能够自动把增量内容编译并部署到服务器上,使得修改立即生效。作为一名java程序员,大家在调试bug的时候,改一次源码重启一次看看效果,重启的时候无聊抽根烟,重启总时间加起来一包烟估计都不够。热部署不需要重启就能让修改生效,让你调试效率上升30%轻轻松松。2、热部署如何实现?针对IntelliJIDEA编
- IDEA安装并破解JRebel 热部署插件
风静花犹落
1.安装打开IDEA,点击File->Settings->Plugins,搜索JRebelandXRebel,安装完成并重启。2.破解第一步:下载激活工具(即代理服务)下载地址:https://github.com/ilanyu/ReverseProxy/releases/tag/v1.4;win64版本:选择ReverseProxy_windows_amd64.exe并下载。第二步:双击运行Re
- 在IDEA 2023.3中Jrebel debug 模式无法启动
K_米诺
zhoquaintellij-ideajrebel
目录版本说明问题描述解决方式版本说明IDEA:IntelliJIDEA2023.3(UltimateEdition)Jrebel:JRebelAgent2023.4.2(202312041035)问题描述在IDEA中启动debug模式时无法正常启动解决方式在IDEA2023.3版本修改了默认的配置,导致jrebel无法正常工作,需要手动设置一下。操作步骤:打开设置(Settings)>>打开“语言
- Jrebel 在 Idea 2023.3中无法以 debug 的模式启动问题
小白程序猴
javaidea
Jrebel在Idea2023.3中无法以debug的模式启动问题Idea在升级了2023.3以后,Jrebel无法以debug的模式启动,找了半天,最后在插件主页的评论区找到了解决方案特此记录一下
- JRebel热部署,解决修改mapper的xml文件不生效的问题
丷长玦遗墨
javaintellij-ideaJrebel
JRebel热部署,解决修改mapper的xml文件不生效的问题idea版本:2019.3.1JRebel版本:2021.3.2mybatis-plus版本:3.3.0情况:java中比如controller、service的代码修改之后,JRebel能够正常热更新,但是修改了resources/mapper/*Mapper.xml中的代码,JRebel失效解决过程:网上帖子说在settings里
- 深入浅出Java Annotation(元注解和自定义注解)
Josh_Persistence
Java Annotation元注解自定义注解
一、基本概述
Annontation是Java5开始引入的新特征。中文名称一般叫注解。它提供了一种安全的类似注释的机制,用来将任何的信息或元数据(metadata)与程序元素(类、方法、成员变量等)进行关联。
更通俗的意思是为程序的元素(类、方法、成员变量)加上更直观更明了的说明,这些说明信息是与程序的业务逻辑无关,并且是供指定的工具或
- mysql优化特定类型的查询
annan211
java工作mysql
本节所介绍的查询优化的技巧都是和特定版本相关的,所以对于未来mysql的版本未必适用。
1 优化count查询
对于count这个函数的网上的大部分资料都是错误的或者是理解的都是一知半解的。在做优化之前我们先来看看
真正的count()函数的作用到底是什么。
count()是一个特殊的函数,有两种非常不同的作用,他可以统计某个列值的数量,也可以统计行数。
在统
- MAC下安装多版本JDK和切换几种方式
棋子chessman
jdk
环境:
MAC AIR,OS X 10.10,64位
历史:
过去 Mac 上的 Java 都是由 Apple 自己提供,只支持到 Java 6,并且OS X 10.7 开始系统并不自带(而是可选安装)(原自带的是1.6)。
后来 Apple 加入 OpenJDK 继续支持 Java 6,而 Java 7 将由 Oracle 负责提供。
在终端中输入jav
- javaScript (1)
Array_06
JavaScriptjava浏览器
JavaScript
1、运算符
运算符就是完成操作的一系列符号,它有七类: 赋值运算符(=,+=,-=,*=,/=,%=,<<=,>>=,|=,&=)、算术运算符(+,-,*,/,++,--,%)、比较运算符(>,<,<=,>=,==,===,!=,!==)、逻辑运算符(||,&&,!)、条件运算(?:)、位
- 国内顶级代码分享网站
袁潇含
javajdkoracle.netPHP
现在国内很多开源网站感觉都是为了利益而做的
当然利益是肯定的,否则谁也不会免费的去做网站
&
- Elasticsearch、MongoDB和Hadoop比较
随意而生
mongodbhadoop搜索引擎
IT界在过去几年中出现了一个有趣的现象。很多新的技术出现并立即拥抱了“大数据”。稍微老一点的技术也会将大数据添进自己的特性,避免落大部队太远,我们看到了不同技术之间的边际的模糊化。假如你有诸如Elasticsearch或者Solr这样的搜索引擎,它们存储着JSON文档,MongoDB存着JSON文档,或者一堆JSON文档存放在一个Hadoop集群的HDFS中。你可以使用这三种配
- mac os 系统科研软件总结
张亚雄
mac os
1.1 Microsoft Office for Mac 2011
大客户版,自行搜索。
1.2 Latex (MacTex):
系统环境:https://tug.org/mactex/
&nb
- Maven实战(四)生命周期
AdyZhang
maven
1. 三套生命周期 Maven拥有三套相互独立的生命周期,它们分别为clean,default和site。 每个生命周期包含一些阶段,这些阶段是有顺序的,并且后面的阶段依赖于前面的阶段,用户和Maven最直接的交互方式就是调用这些生命周期阶段。 以clean生命周期为例,它包含的阶段有pre-clean, clean 和 post
- Linux下Jenkins迁移
aijuans
Jenkins
1. 将Jenkins程序目录copy过去 源程序在/export/data/tomcatRoot/ofctest-jenkins.jd.com下面 tar -cvzf jenkins.tar.gz ofctest-jenkins.jd.com &
- request.getInputStream()只能获取一次的问题
ayaoxinchao
requestInputstream
问题:在使用HTTP协议实现应用间接口通信时,服务端读取客户端请求过来的数据,会用到request.getInputStream(),第一次读取的时候可以读取到数据,但是接下来的读取操作都读取不到数据
原因: 1. 一个InputStream对象在被读取完成后,将无法被再次读取,始终返回-1; 2. InputStream并没有实现reset方法(可以重
- 数据库SQL优化大总结之 百万级数据库优化方案
BigBird2012
SQL优化
网上关于SQL优化的教程很多,但是比较杂乱。近日有空整理了一下,写出来跟大家分享一下,其中有错误和不足的地方,还请大家纠正补充。
这篇文章我花费了大量的时间查找资料、修改、排版,希望大家阅读之后,感觉好的话推荐给更多的人,让更多的人看到、纠正以及补充。
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。
2.应尽量避免在 where
- jsonObject的使用
bijian1013
javajson
在项目中难免会用java处理json格式的数据,因此封装了一个JSONUtil工具类。
JSONUtil.java
package com.bijian.json.study;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
- [Zookeeper学习笔记之六]Zookeeper源代码分析之Zookeeper.WatchRegistration
bit1129
zookeeper
Zookeeper类是Zookeeper提供给用户访问Zookeeper service的主要API,它包含了如下几个内部类
首先分析它的内部类,从WatchRegistration开始,为指定的znode path注册一个Watcher,
/**
* Register a watcher for a particular p
- 【Scala十三】Scala核心七:部分应用函数
bit1129
scala
何为部分应用函数?
Partially applied function: A function that’s used in an expression and that misses some of its arguments.For instance, if function f has type Int => Int => Int, then f and f(1) are p
- Tomcat Error listenerStart 终极大法
ronin47
tomcat
Tomcat报的错太含糊了,什么错都没报出来,只提示了Error listenerStart。为了调试,我们要获得更详细的日志。可以在WEB-INF/classes目录下新建一个文件叫logging.properties,内容如下
Java代码
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHa
- 不用加减符号实现加减法
BrokenDreams
实现
今天有群友发了一个问题,要求不用加减符号(包括负号)来实现加减法。
分析一下,先看最简单的情况,假设1+1,按二进制算的话结果是10,可以看到从右往左的第一位变为0,第二位由于进位变为1。
 
- 读《研磨设计模式》-代码笔记-状态模式-State
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类
状态模式主要解决的是当控制一个对象状态的条件表达式过于复杂时的情况
把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化
如果在
- CUDA程序block和thread超出硬件允许值时的异常
cherishLC
CUDA
调用CUDA的核函数时指定block 和 thread大小,该大小可以是dim3类型的(三维数组),只用一维时可以是usigned int型的。
以下程序验证了当block或thread大小超出硬件允许值时会产生异常!!!GPU根本不会执行运算!!!
所以验证结果的正确性很重要!!!
在VS中创建CUDA项目会有一个模板,里面有更详细的状态验证。
以下程序在K5000GPU上跑的。
- 诡异的超长时间GC问题定位
chenchao051
jvmcmsGChbaseswap
HBase的GC策略采用PawNew+CMS, 这是大众化的配置,ParNew经常会出现停顿时间特别长的情况,有时候甚至长到令人发指的地步,例如请看如下日志:
2012-10-17T05:54:54.293+0800: 739594.224: [GC 739606.508: [ParNew: 996800K->110720K(996800K), 178.8826900 secs] 3700
- maven环境快速搭建
daizj
安装mavne环境配置
一 下载maven
安装maven之前,要先安装jdk及配置JAVA_HOME环境变量。这个安装和配置java环境不用多说。
maven下载地址:http://maven.apache.org/download.html,目前最新的是这个apache-maven-3.2.5-bin.zip,然后解压在任意位置,最好地址中不要带中文字符,这个做java 的都知道,地址中出现中文会出现很多
- PHP网站安全,避免PHP网站受到攻击的方法
dcj3sjt126com
PHP
对于PHP网站安全主要存在这样几种攻击方式:1、命令注入(Command Injection)2、eval注入(Eval Injection)3、客户端脚本攻击(Script Insertion)4、跨网站脚本攻击(Cross Site Scripting, XSS)5、SQL注入攻击(SQL injection)6、跨网站请求伪造攻击(Cross Site Request Forgerie
- yii中给CGridView设置默认的排序根据时间倒序的方法
dcj3sjt126com
GridView
public function searchWithRelated() {
$criteria = new CDbCriteria;
$criteria->together = true; //without th
- Java集合对象和数组对象的转换
dyy_gusi
java集合
在开发中,我们经常需要将集合对象(List,Set)转换为数组对象,或者将数组对象转换为集合对象。Java提供了相互转换的工具,但是我们使用的时候需要注意,不能乱用滥用。
1、数组对象转换为集合对象
最暴力的方式是new一个集合对象,然后遍历数组,依次将数组中的元素放入到新的集合中,但是这样做显然过
- nginx同一主机部署多个应用
geeksun
nginx
近日有一需求,需要在一台主机上用nginx部署2个php应用,分别是wordpress和wiki,探索了半天,终于部署好了,下面把过程记录下来。
1. 在nginx下创建vhosts目录,用以放置vhost文件。
mkdir vhosts
2. 修改nginx.conf的配置, 在http节点增加下面内容设置,用来包含vhosts里的配置文件
#
- ubuntu添加admin权限的用户账号
hongtoushizi
ubuntuuseradd
ubuntu创建账号的方式通常用到两种:useradd 和adduser . 本人尝试了useradd方法,步骤如下:
1:useradd
使用useradd时,如果后面不加任何参数的话,如:sudo useradd sysadm 创建出来的用户将是默认的三无用户:无home directory ,无密码,无系统shell。
顾应该如下操作:
- 第五章 常用Lua开发库2-JSON库、编码转换、字符串处理
jinnianshilongnian
nginxlua
JSON库
在进行数据传输时JSON格式目前应用广泛,因此从Lua对象与JSON字符串之间相互转换是一个非常常见的功能;目前Lua也有几个JSON库,本人用过cjson、dkjson。其中cjson的语法严格(比如unicode \u0020\u7eaf),要求符合规范否则会解析失败(如\u002),而dkjson相对宽松,当然也可以通过修改cjson的源码来完成
- Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
yaerfeng1989
timerquartz定时器
原创整理不易,转载请注明出处:Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
代码下载地址:http://www.zuidaima.com/share/1772648445103104.htm
有两种流行Spring定时器配置:Java的Timer类和OpenSymphony的Quartz。
1.Java Timer定时
首先继承jav
- Linux下df与du两个命令的差别?
pda158
linux
一、df显示文件系统的使用情况,与du比較,就是更全盘化。 最经常使用的就是 df -T,显示文件系统的使用情况并显示文件系统的类型。 举比例如以下: [root@localhost ~]# df -T Filesystem Type &n
- [转]SQLite的工具类 ---- 通过反射把Cursor封装到VO对象
ctfzh
VOandroidsqlite反射Cursor
在写DAO层时,觉得从Cursor里一个一个的取出字段值再装到VO(值对象)里太麻烦了,就写了一个工具类,用到了反射,可以把查询记录的值装到对应的VO里,也可以生成该VO的List。
使用时需要注意:
考虑到Android的性能问题,VO没有使用Setter和Getter,而是直接用public的属性。
表中的字段名需要和VO的属性名一样,要是不一样就得在查询的SQL中
- 该学习笔记用到的Employee表
vipbooks
oraclesql工作
这是我在学习Oracle是用到的Employee表,在该笔记中用到的就是这张表,大家可以用它来学习和练习。
drop table Employee;
-- 员工信息表
create table Employee(
-- 员工编号
EmpNo number(3) primary key,
-- 姓