51CTO博客开发
SQL> select region_id, customer_id, sum(customer_sales) total, 2 rank() over(order by sum(customer_sales) desc) rank, 3 dense_r
1、页面代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xht
1、比如一个表test,三个字段:id、name、czd,内容如下 1001 张一 80 1001 张一 90 1001 张一 &nbs
1、struts配置文件,添加拦截器TokenInterceptor<package name="business" namespace="/business" extends="default"><interceptors><interceptor name="tokenInterceptor&q
一、拷贝文件1、将JRE这个文件夹拷贝至D:/Java_WorkSpace/pumpdata,将junit包(org.junit_3.8.2.v20080602-1318)也拷入D:/Java_WorkSpace/pumpdata二、使用exe4j2、进入exe4j,开始3、选择第一个4、填写名字和存放位置5、选择图片6、添加jar包,和junit类。选择主类7、添加JRE包8、其他下一步,直到完
Runtime run = Runtime.getRuntime(); Process process = null; try{ process = run.exec("notepad"); // 执行cmd命令 process.waitFor(); } catch(Exception e) { System.out.println("Error executing
1、在spring配置文件加上如下代码<bean id="resourceProxy" class="com.xxx.package.proxy.report.ResourceProxy"> </bean> <bean id="genDashboa
一、服务端 1、web.xml配置 加上如下代码:<servlet> <servlet-name>accountExporter</servlet-name> <servlet-class>org.springframework.web.conte
JSP中导入导出Excel文件 [原创 2008-10-14 15:58:04] 字号: 大 中 小 POI3的资料整理一.POI简介 Jakarta POI 是apache的子项目,目标是处理ole2对象。它提供了一组操纵Windows文档的Java API 目前比较成熟的是HSSF接口,处理MS Excel(97-2002)对象。它不象我们仅仅是用csv生成的没有格
package Default;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class MyEclipseGen {private static final String LL = "Decompiling this copyrighted
package com.imchooser.map.util;import java.awt.p_w_picpath.BufferedImage;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import
一 、Select 02 jQuery获取Select选择的Text和Value: 03 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 04 2. var checkText=$("#select_id").fin
1)最基本的,方法级别上应用,例如: Java代码 1. 2.@RequestMapping(value="/departments") 3.public String simplePattern(){ 4. 5. System.out.println("simplePattern metho
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileO
1、创建jsArray.prototype.remove = function( item ){ for( var i = 0 ; i < this.length ; i++ ){ if( item == this[i] ) break; } if( i == this.length ) return;
1、创建jsfunction MiaovperfectDragSimple(vElement, fnOnDragStart, fnOnDraging, fnOnDragEnd){var oElementDrag=null;if(typeof vElement == 'string'){oElementDrag=document.getElementById(vElement);}e
1、左边广告<DIV id="floaterleft" style="Z-INDEX: 100; LEFT: 10px; VISIBILITY: visible; WIDTH: 145px; POSITION: absolute; float: left;display: none;" > <div style="width: 1
1、下载wro4j jar包,这里用wro4j-core-1.6.3.jar,wro4j-extensions-1.6.3.jar。将这2个包加到项目。(可以在本文下面的附件中下载)2、配置web.xml在web.xml加上下面的代码: <filter><filter-name>WebResourceOptimizer</filter-name>&l
还可以看下http://www.myexception.cn/windows/498970.html,这个说的也很详细下载地址http://www.oracle.com/technetwork/cn/products/timesten/downloads/index.html一. 安装TimesTenTimesTen的安装很简单,直接执行安装程序,选择默认设置即可。在安装前,需要确认如下两点:1.
import java.awt.p_w_picpath.BufferedImage;import java.io.File;import java.io.IOException;import java.security.interfaces.RSAPrivateKey;import java.security.interfaces.RSAPublicKey;import java.util.Has
public void copyFile(String oldPath, String newPath) throws IOException { try { String newPathFolder = newPath.substring(0, newPath.lastIndexOf("/"));
一、避免在循环条件中使用复杂表达式在不做编译优化的情况下,在循环中,循环条件会被反复计算,如果不使用复杂表达式,而使循环条件值不变的话,程序将会运行的更快。 例子: import java.util.vector; class cel { void method (vector vector) { for (int i = 0; i < vector.size
资源下载:Spring_MVC_教程_快速入门_深入分析V1.1.pdfSpringMVC核心配置文件示例.rar作者:赵磊博客:http://elf8848.iteye.com目录 一、前言二、spring mvc 核心类与接口三、spring mvc 核心流程图四、spring mvc DispatcherServlet说明五、spring mvc 父子上下文的说明六、springMVC-mv
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号