`
文章列表
1.首先配置 spring3 的配置文件   <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xml ...
  1.----------------------Linux下修改TomcatJVM内存大小---------------------- 要添加在tomcat  的bin 下catalina.sh 里,位置cygwin=false前 。注意引号要带上,红色的为新添加的. # OS specific support.  $var _must_ be set to either true or false.JAVA_OPTS="-Xms256m -Xmx512m -Xss1024K -XX:PermSize=128m -XX:MaxPermSize=256m"  cy ...
  安装subclipse, MyEclipse8.5 SVN插件 1、从官网下载site-1.6.9.zip文件,网址是:subclipse.tigris.org, 2、从中解压出features与 plugins文件夹,复制到E:\MyEclipse\myPlugin\svn里面,其它的*.xml文件不要。 3、在 E:\MyEclipse\MyEclipse8.5\dropins下新建文件svn.link,内容是:path=E:\\MyEclipse \\myPlugin\\svn保存。 4、删除E:\MyEclipse\MyEclipse8.5\configuration \org. ...

tomcat 发布应用

  1.在tomcat安装目录中有一个conf文件夹,打开此文件夹,其中包含配置文件server.xml,打开配置文件,并在<host>和</host>之间插入如下语句。 <Context    path="/first"   docBase="e:\workspace\hello\WebRoot"     debug="0"    privileged="true">      </Context> 其中,docBase为设置项目的路径。 2.在conf目录 ...

ajax 参数详解

url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put
ssh常用用法小结 1、连接到远程主机: 命令格式 : ssh name@remoteserver 或者 ssh remoteserver -l name 说明:以上两种方式都可以远程登录到远程主机,server代表远程主机,name为登录远程主机的用户名。 2、连接到远程主机指定的端口: 命令格式: ssh name@remoteserver -p 2222 或者 ssh remoteserver -l name -p 2222 说明:p 参数指定端口号,通常在路由里做端口映射时,我们不会把22端口直接映射出去,而是转换成其他端口号,这时就需要使用-p端口号命令格式。 ...
   spring 中配置文件,定义 每天6:10:10 执行任务(6点10分10秒执行任务) <description>upop 任务执行信息 </description>  <!-- 系统SchedulerFactory --> <!--   --> <bean id="upopQuartzSchedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">       <pro ...
使用apache 的开源jar 包,实现文件的上传和下载功能: package com.iss.itreasury.cbeservice.clearfile.utils; import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.util.Properties; import org.apache ...

Linux 常用命令

1. 复制命令 cp 1) 把ab目录下的所有记录 复制到 当前目录 cp -r  ab   . 2.把ab目录下的所有记录 复制到 当前目录覆盖原来已有的ab 目录 cp -rf ab .  如果需要显示进度的话需要加参数 v 如    cp -rfv  ab   .   2. 查看防火墙状态 chkconfig iptables --list 关闭防火墙 chkconfig iptables  off 开启防火墙 chkconfig iptables  on   3.查询 目录下文件中包含的字符串 查询当前目录下,文档中是否包含159123字符串  fin ...
ibatas 批量插入数据时,使用到 startBatch()  和executeBatch() 两个方法, 批量执行前使用 startBatch() ,执行时使用executeBatch() //批量插入数据实现   public static Object insertAccountList (List<Account> list) throws SQLException {   sqlMapper.startBatch();     for(int i=0;i<list.size();i++){    Account acc = list.get(i);    s ...
使用json输出字符串时,经常会出现中文乱码的问题。 需要设置一下,下面的参数就可以解决中文乱码的问题: response.setContentType("text/json");   response.setCharacterEncoding("UTF-8");     实例: JSONArray json = JSONArray.fromObject(resp);  Writer wr = null;  try {   wr = response.getWriter();   response.setContentType("t ...
如有文件:user.properties 首先执行  native2ascii -reverse -encoding gb2312 user.properties user3.properties 执行命令后,会生成user_zh_CN.properties  文件 然后再执行: native2ascii user3.properties user_zh_CN.properties 然后你的程序读user_zh_CN.properties的内容就可以。 user_zh_CN.properties 内容如下: test=\u6d4b\u8bd5\u4e2d\u6587\u4e71 ...
  ORACLE 数据库导出命令: 导出整个数据库 exp username/pwd@sid file=d:\data.dmp log=d:\datalog.log full=y 导出指定的某个表的数据 exp username/pwd@sid file=d:\data.dmp tables(TableName1,TableName2,...TableNameN) 导入整个数据库imp test/test@TJ file=C:\Users\issuser\Desktop\ibatis\20141128.dmp log=C:\Users\issuser\Desktop\ibatis\20 ...
      ---查出重复记录 select a.* from account a where a.acc_first_name in  (select acc_first_name from (                select count(a.acc_first_name) num,a.acc_first_name from account a group by a.acc_first_name)         a where num >=2)            select a.* from account a where a.acc_first_name in ...
对几条数据,根据id号进行批量删除,批量修改是 ibatis2 需要使用 到itrerate 标签, 该标签使用方法如下     <delete id="deleteAccountByList" parameterClass="java.util.List">    delete from ACCOUNT where ACC_ID in    <iterate conjunction="," open="(" close=")" >     #list[]#    ...
Global site tag (gtag.js) - Google Analytics