`
文章列表
<!-- 岗位列表 --> <set name="station" inverse="true" cascade="all,delete-orphan" table="T_USER_STATION" fetch="join"> <key column="I_USER_ID" /> <many-to-many class="org.apache.dream.common.entity.Station"> ...

表上锁开锁

select distinct request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type = 'OBJECT' kill spid  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>找字网网页颜色代码全集</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <META content="MSHTML 6.00.2800.1543" name=GENERATOR> &l ...

struts2 poi excel

<action name="link" class="LinkAction"> <result name="excel" type="stream"> <param name="contentType">application/vnd.ms-excel</param> <param name="contentDisposition">attachment;filename="lin ...
java.lang.NoClassDefFoundError: org/apache/commons/io/output/NullOutputStream  缺少commons-io-1.3.2.jar
一.需要包(两个),我用的是struts-2.1.8.1,注意版本     struts2-sitemesh-plugin-2.1.8.1.jar     sitemesh-2.4.2.jar 二.创建decorators.xml <?xml version="1.0" encoding="utf-8"?> <decorators defaultdir="/decorators"> <!--excludes结点则指定了哪些路径的请求不使用任何模板--> <!--/index.j ...
    struts版本:2.1.8.1 一.需要包(2个)     json-lib-2.1.jar     struts2-json-plugin-2.1.8.1.jar 二.下载js(两个)     json.js     prototype.js 三.配置文件中添加如下代码.   <struts> <package name="TestAjax" extends="json-default"> <action name="TestAjax" class="com ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD></HEAD> <BODY> <div id="div"> <div>aa</div> <div>bb</div> <div>cc</div> <div>dd</div> <div>ee ...
一.树   二.代码,两个class public class Node { /** 名称 */ private String name; /** 左节点 */ private Node left; /** 右节点 */ private Node right; //get.set略 public Node(String n, Node l, Node r) { name = n; left = l; right = r; } }   public class Admin { public static void ...

表复制SQL语句

1.(A->B) 表A复制到表B insert into b(id,name,password) (select id,name,password from a)  2..(A->B) 表A复制到表B,条件:复制B中没有的A的数据 insert into b(id,name,password) (select id,name,password from a where id not in (select id from b))  
public static void main(String[] args) {   test("abbcccddddaa");  } public static void test(String str) {   int max_length = 0;   String max_str = "";   while (str.length() > 0) {    int length = str.length();    String first = str.substring(0, 1);    str = str.replac ...
一.dream.tld <?xml version="1.0" encoding="utf-8"?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd" ver ...
(struts1 和struts2 均适用,不依赖任何框架) 一.创建dream.tld 放在WEB-INF 下 <?xml version="1.0" encoding="utf-8"?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/x ...
一.基本包(6个)    1.commons-logging-1.0.4.jar    2.commons-fileupload-1.2.1.jar    3.ognl-2.6.11.jar    4.struts2-core-2.1.6.jar    5.xwork-2.1.2.jar    6.freemarker-2.3.13.jar 二.整合tiles必须包(7个)    1.struts2-tiles-plugin-2.1.6.jar    2.tiles-api-2.0.6.jar    3.tiles-core-2.0.6.jar    4.tiles-jsp ...
习惯了struts1.X中struts-config.xml放置在WEB-INF下, 也想将struts2中的struts.xml也放在WEB-INF下,如下:   struts.xml 的路径为WEB-INF/struts-configs/struts.xml (沿用struts1的习惯) struts-default.xml文件位置不用动 ,不需要 放在WEB-INF/struts-configs/中   更改web.xml <filter>        <filter-name>struts2</filter-name>        & ...
Global site tag (gtag.js) - Google Analytics