`
文章列表
import javax.crypto.SecretKey;import javax.crypto.spec.SecretKeySpec;import java.net.URL;import java.net.HttpURLConnection;import java.io.PrintWriter;import java.io.BufferedReader;import java.io.InputStreamReader; /** * Created by IntelliJ IDEA. * User: zhengzhg * Mail: snake_country@sina.com * Date: ...
修改过程:   1.不要碰conf目录下的那个web.xml文件,让它老死在那里吧。   2.把原来的ROOT目录清空,里面什么都不要留。删掉或者改名随便你怎么弄都成。只要清空就好。   3.发布你自己的项目到ROOT目录下,用war包发布或者用直接拷贝的都一个效果。保证index.html/index.htm/index.jsp其中一个存在于ROOT目录下。 发布程序\webapps\ROOT\WEB-INF\webxml需有  <!--默认首页定义-->    <welcome-file-list>        <welcome-file>index.j ...
1.将$\jakarta-tomcat-5.0.28\conf\Catalina\localhost里的.xml删除或挪走 2.新建root.xml文档   <!--     Context configuration file for the Tomcat Administration Web App     $Id: admin.xml,v 1.3 2004/02/20 17:09:19 remm Exp $ --> <Context path="/gdcrm" docBase="E:/gdcrm/WebRoot"        de ...
D:\orant\NET80\ADMIN     # TNSNAMES.ORA Network Configuration File: d:\oracle\ora92\network\admin\tnsnames.ora# Generated by Oracle configuration tools. ORA9.ITB.WEB =  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.194.129.224)(PORT = 1521))    )    (CONNECT_DATA =      ...
  Hibernate3.0执行批量更新Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); String hqlUpdate = "update Customer set name = :newName where name = :oldName"; int updatedEntities = s.createQuery( hqlUpdate ) .setString( "newName", newName ) .setSt ...
JAVA的环境变量如何设置?A: 如果是Win95/98,在\autoexec.bat的最后面添加如下3行语句:     set JAVA_HOME=c:\j2sdk1.4.2    set PATH=%JAVA_HOME%\bin;%PATH%    set CLASSPATH=.;    看好了CLASSPATH中第一个“.”,这个代表当前目录,很多人HelloWorld没有运行起来大多是这个原因。 B. 如果是Win2000或者XP,使用鼠标右击“我的电脑”->属性->高级->环境变量    系统变量->新建->变量名:JAVA_HOME 变量值:c:\j2s ...
D:\orant\NET80\ADMIN     # TNSNAMES.ORA Network Configuration File: d:\oracle\ora92\network\admin\tnsnames.ora# Generated by Oracle configuration tools. ORA9.ITB.WEB =  (DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.194.129.224)(PORT = 1521))    )    (CONNECT_DATA =      ...
  Hibernate3.0执行批量更新Session session = sessionFactory.openSession(); Transaction tx = session.beginTransaction(); String hqlUpdate = "update Customer set name = :newName where name = :oldName"; int updatedEntities = s.createQuery( hqlUpdate ) .setString( "newName", newName ) .setSt ...
reg=/^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/gi;  if(form.email.value!=""){  if(!reg.test(form.email.value))    {     alert("非法的电子邮件);      form.email.focus();      return false;     }    }  reg1=/^13\d{9}$/gi;  if(form.mobile.value! ...
今天为了从外网数据库导入到内网数据库,采用了dblink方式进行.     创建dblink分为两个步骤:    1.建立本地服务名    2.-- Create database link create database link TEST.US.ORACLE.COM  connect to user identified by pwd  using '(DESCRIPTION =    (ADDRESS_LIST =      (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 1521))    )    (CONNECT_DATA =      ( ...
1.在web.xml最后加入  <mime-mapping> <extension>rar</extension> <mime-type>application/rar</mime-type> </mime-mapping>当然别的类型有乱码也可以加 2.清除IE缓存 3.重启TOMCAT
Global site tag (gtag.js) - Google Analytics