`
文章列表
根据客户提供的Excel,在导入日期数据时,发现获得的值是一串数字。客户设置的日期格式为yyyyy年MM月,当把日期格式设置为yyyy-MM时,就能够正确读取。我们用得是POI3.6,方法:org.apache.poi.ss.usermodel.DateUtil.isCellDateFormatted(Cell cell)。调用时总是返回false,经跟踪源码发现只要含有中文时间单位就不行(例如含有“年”或“月”等时间单位),故修改,增加了对中文时间单位的过滤,经测试判断正确。 方法:DateUtil.isADateFormat(int formatIndex, String format ...
--SQL SERVER 日志清除 USE [master] GO ALTER DATABASE DNName SET RECOVERY SIMPLE WITH NO_WAIT GO ALTER DATABASE DNName SET RECOVERY SIMPLE --简单模式 GO USE DNName GO DBCC SHRINKFILE (N'DNName_Log' , 11, TRUNCATEONLY) GO USE [master] GO ALTER ...
今天同事给客户更新代码,老是启动Tomcat报错,本地是测试通过的。经查看日志,有错误如下:Null component Catalina:type=JspMonitor,name=jsp 。 此错误导致的原因是代码编译的JDK版本不一致,客户那边是JDK1.5,而我们用得是1.6开发的。
原文地址:http://hi.baidu.com/%CE%E4%BA%BAjava%C5%E0%D1%B5/blog/item/012b6dc169ff489fc91768f5.html 引用一、action的写法 package action.mapAction; import java.util.Map; public class MapAction { private Map<String, String> map; public String test() {   System.out.println(map.size());   return "suc ...
window.dialogArguments.location.reload();
declare @name varchar(30) while(exists(select * from sysobjects where name like 'PM%')) begin select @name=name from sysobjects where name like 'PM%' exec ('drop table '+@name) end
protected Object getObjectFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, SQLException { Object obj = null; Blob blobLocator = rs.getBlob(colName); if (blobLocator != null && blobLocator.length() != 0) { I ...
在table下面一定要加上<tbody>这个元素,例如<tbody id="payStateTBody">。所有tr全部在下面添加。
<s:bean name="org.apache.struts2.util.Counter" id="counter"> <s:param name="first" value="1" /> <s:param name="last" value="10" /> <s:iterator> //循环输出代码 </s:iterator> </s:bean>
import com.ibatis.sqlmap.engine.mapping.result.ResultMapping; /** * @description Ibatis Sql 实体类 * @author 杨惠 * @version 1.0 * @date 2010-8-13 */ public class IbatisSql { // SQL语句 private String sql = ""; // SQL字段信息 private ResultMapping[] resultMappings = null; ...
<parameterMap id="swapParameters" class="map" > <parameter property="email1" jdbcType="VARCHAR" javaType="java.lang.String" mode="INOUT"/> <parameter property="email2" jdbcType="VARCHAR" javaType= ...
<sql id="selectItem_fragment"> FROM items WHERE parentid = 6 </sql> <select id="selectItemCount" resultClass="int"> SELECT COUNT(*) AS total <include refid="selectItem_fragment"/> </select> <select id ...
<statement id="DeleteAccount" parameterClass="Account"> BEGIN DELETE FROM ORDERS WHERE ACCOUNT_ID = #Id#; DELETE FROM ACCOUNTS WHERE ACCOUNT_ID = #Id#; END; </statement>

CSS溢出控制

white-space: nowrap;text-overflow:ellipsis; overflow:hidden;
需要加下面这句配置: org.quartz.jobStore.selectWithLockSQL=SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?
Global site tag (gtag.js) - Google Analytics