`
kkllmey
  • 浏览: 103379 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
单个字段唯一约束: <property name="userName" type="java.lang.String" column="`userName`" not-null="true" unique="true" length="20"/> 多个字段唯一约束: <property name="name" type="String" unique-key="XXX" /> <pr ...

xml

package com.test; import java.io.File; import java.io.FileWriter; import java.util.Iterator; import java.util.List; import org.dom4j.Attribute; import org.dom4j.Document; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import ...
下载包后把lib中的日记、struts2-core、xwork、freamwork、 ognl   <filter>       <filter-name>struts2</filter-name>       <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>   </filter>   <filter-mapping>       <filter-name>struts2</filter- ...

OracleText

package com.i18n; import java.sql.*; import javax.transaction.Transaction; public class OracleTest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String url = "jdbc:oracle:thin:@127.0.0.1:1521:ora10"; String driver = "o ...
重点在:五、六、七 章 ----------------------------------------第一章基本概念--------------------------------------- http://localhost:5500/em http://localhost:5500/isqlplus 命令行登陆sqlplus  : cmd ->  sqlplus username/pwd@ora10 oracle官方账号:我的邮箱 / 1361XXX Oracle9i如果要启动的服务(Service)有三个 1.HTTPServer,如果想通过游览器执行sql。 ...

JavaEye有感

从别的网站转到JavaEye.感JavaEye的网站风格干净.给人一种清爽的感觉!而且速度也很快!是一个好去处!希望以后在这里能更好的学习交谈.记录自己的点点嘀嘀和学习历程!也祝愿JavaEye越办越好!
1.自定义异常类 package com.ownhome.exception; /** * 自定义异常类 * @author admin * */ public class MyException extends Exception { protected Throwable throwable; /*构造方法*/ public MyException(String msg){ super(msg); } /*构造方法*/ public MyException(String msg,Th ...

DBHelper

    博客分类:
  • C#
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; //数据库访问工具类 namespace userWeb.Util { public static class DBHelper { // private static SqlConnection connection; public static string connectionString = "Data ...
1.添加log4j-1.2.8.jar   2.src目录下(log4j.properties)   { ### 日志输出到控制台### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=% ...
<?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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframe ...
package com.service; import java.lang.reflect.Method; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.util.ArrayList; import java.util.List; import com.entity.Student; public class Service { public List toList(ResultSet rs,Class cls) { try { List lst=new Arra ...
package net.music.util; import java.lang.reflect.Field; import java.util.List; import org.hibernate.Criteria; import org.hibernate.FetchMode; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.criterion.Example; import org.hibernate.criterion.Order; import org.hibernate. ...

Ajax使用

function createXmlHttpRequest() { try { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("msxml2.XMLHTTP"); return xmlHttp; } else { return new XmlHttpRequest(); } } catch (exception) { alert(exception); return null; } } function chSingerType(ob) { xmlHttp ...
1.创建好web工程2.把dwr.jar放入WEB-INF/lib目录之下3.把engine.js和util.js文件放入web模块的某个文件夹(如js)下4.在web.xml中配置dwr,示例代码如下<?xml version="1.0" encoding="UTF-8"?><web-app version="2.4" xmlns="http://java. ...
<?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:aop="http://www.springframework.org/schema/aop "  xsi:schemaLocation="http ...
Global site tag (gtag.js) - Google Analytics