`
文章列表
Use default descriptor and attached to verify phase: <plugins>   <plugin>    <artifactId>maven-assembly-plugin</artifactId>    <version>2.2-beta-5</version>    <executions>     <execution>      <phase>verify</phase>      <goals>      ...
Clear log file content without impacting service that is running (in batch): find . -name "*.log" -exec bash -c ">{}" \;   Subsitute file content in batch: find -name "*.xml" -exec bash -c "sed -e 's/aaa/bbb/' {} > {}" \;  
This is another descriptive error message from SVN. “Retrieval of mergeinfo unsupported” If you’re seeing this error message you’re probably trying to use the reintegrate merger feature in SVN. You probably just used a command like this one:   1 svn merge --reintegrate svn://foo ...
Basic Merging Now you and Sally are working on parallel branches of the project: you're working on a private branch, and Sally is working on the trunk, or main line of development. For projects that have a large number of contributors, it's common for most people to have working copie ...

Spring JdbcTemplate

(Reposted from: http://www.2cto.com/kf/201211/168242.html)   Spring JdbcTemplate使用JdbcTemplate主要提供以下五类方法:execute方法:可以用于执行任何SQL语句,一般用于执行DDL语句;update方法及batchUpdate方法:update方法用于执行新增、修改、删除等语句;batchUpdate方法用于执行批处理相关语句;query方法及queryForXXX方法:用于执行查询相关语句;call方法:用于执行存储过程、函数相关语句。JdbcTemplate类支持的回调类:预编译语句及存储 ...
转至:http://jingyan.baidu.com/article/5bbb5a1b5d293413eba179ea.html   在Win7系统中,存在一个虚拟账户,即TrustedInstaller,有时需要对C盘一些系统文件/文件夹进行修改,或删除,就会弹出“你需要TrustedInstaller提供的权限才能修改此文件”。这时用此法可解除此限制。对于系统中一些无法删除的文件/文件夹,有时采用此法也能轻松删除。   工具/原料 Win7系统,方法一不需其他额外工具。 ​方法二使用系统自带记事本即可。 步骤/方法 ...
A parent pom have several modules and each module use assembly to build different distribution jars.   Issue: Building going back to already built modules and recursive   Cause: One module use assembly as the goal in assembly plugin, this will force maven to build all poms.   Reference: ht ...
How do I convert DOS newlines CR/LF to Unix/Linux format?To converts text files between DOS and Unix formats you need to use special utility called dos2unix. DOS text files traditionally have carriage return and line feed pairs as their newline characters while Unix text files have the line feed as ...
In grep, we have options equivalent to OR and NOT operators. There is no grep AND opearator. But, you can simulate AND using patterns. The examples mentioned below will help you to understand how to use OR, AND and NOT in Linux grep command.The following employee.txt file is used in the following e ...
在多个并发线程之间共用资源,就需要进行同步处理。Java虚拟机通过给每个对象加锁的方式实现多线程的同步处理,这里的对象包括类对象和实例对象。一个类的静态成员方法和静态成员域隶属于类对象,一个类的非静态成员域和非静态成员方法隶属于类的实例对象。    Java 虚拟机为每个对象配备一把锁和一个等候集,对象锁内部锁住的是一些同步方法个同步语句块。一个方法要成为同步方法只要给该方法加上修饰词synchronized就可以了,同步语句块的定义格式为    synchronized(引用类型的表达式) 其中synchronized是同步语句块的引导词;位于()内的表达式必须是引用类型的表达式。指向某个类对 ...
Syntax:      SET option value      SHO[W] option   Options: most of the options listed below have an abbreviated and a long form            e.g. APPINFO or APPI will do the same thing   APPI[NFO] {ON|OFF|text}    Application info for performance monitor (see DBMS_APPLICATION_INFO)   ARRAY ...

Get DDL via SQLPLUS

set pagesize 0 -- The height of the page - number of lines, 0 will suppress all headings, page breaks, titles set linesize 200 -- Width of a line (before wrapping to the next line) set long 1000000000 -- Set the maximum width (in chars) for displaying and copying LONG values. set longchunksize 100 ...
RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序” rpm 执行安装包二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rpm作为后缀名。 常用命令组合:   -ivh:安装显示安装进度--install--verbose--hash-Uvh:升级软件包--Update;-qpl:列出RPM软件包内的文件信息[Query Package list];-qpi:列出RPM软件包的描述信息[Query Package ...
1. Why can't static methods be abstract in Java?   Because "abstract" means: "Implements no functionality", and "static" means: "There is functionality even if you don't have an object instance". And that's a logical contradiction.You can't override a static ...
例如现有目录a和b, a下有目录c和d,c下有文件1.txt, d下有文件2.txt. 现在需要用命令一次性把c和d下的所有txt文件copy到目录b中。 |--a |   |--c |   |   |--1.txt |   |--d |       |--2.txt |--b   1) 使用xcopy会连同子目录一起copy过去: > cd a > xcopy /s *.txt ..\b   2) 使用for循环可以只copy文件而不保留目录结构 > cd a > cd .. > for /r a %i in (*.txt) do c ...
Global site tag (gtag.js) - Google Analytics