
spring
qq123zhz
这个作者很懒,什么都没留下…
展开
-
Quoted-Printable qp编码实现,在vcf导出会用到
package com.chinaGPS.driverBook.util; import java.io.ByteArrayOutputStream; /**Qp编码 * @author zhz * */ public class QpEncodeUtil { /** * quoted-printable编码 */ public stat...原创 2011-08-26 11:29:36 · 227 阅读 · 0 评论 -
quartz 定时任务调度
很有用的quartz的学习资料。。。 本人最近也一值在项目是使用。。。。。 package com.chinaGPS.driverBook.service.impl; import java.text.ParseException; import java.util.ArrayList; import java.util.Collection; import java.util....原创 2011-08-31 12:05:09 · 102 阅读 · 0 评论 -
quartz 时间表达式转换
/**日期和表达式的转化 * @param hour 小时 * @param minute 分钟 * @return */ private String makeDailyTrigger(String hour, String minute) { validateHour(Integer.parseInt(hour)); validateMinu...原创 2011-08-31 17:18:46 · 375 阅读 · 0 评论 -
spring3 单元测试 web-inf路径问题
配置文件路径问题 在src下 @ContextConfiguration(locations={"classpath:application*.xml"}) 在web-inf下 @ContextConfiguration(locations={"classpath:**/application*.xml"})原创 2011-08-12 09:00:21 · 151 阅读 · 0 评论 -
spring quartz 定时器报错
Caused by: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'driverbible.qrtz_locks' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErr...原创 2011-08-15 08:49:58 · 429 阅读 · 0 评论 -
spring中获得属性文件键值对,在程序中使用
!-- <context:property-placeholder --> <!-- location="/WEB-INF/jdbc-config/jdbc.properties" /> --> <bean id="propertyConfigurer" class="com.chinaGPS.nss.util.MyPropertyPlaceho...2011-12-27 10:15:28 · 195 阅读 · 0 评论 -
加密properties文件,使用jaspt和spring加密
package org.jasypt.spring3.properties; import org.jasypt.commons.CommonUtils; import org.jasypt.encryption.StringEncryptor; import org.jasypt.properties.PropertyValueEncryptionUtils; import org....2012-01-05 09:32:49 · 297 阅读 · 0 评论 -
重载spring中的PropertyPlaceholderConfigurer,获得加载的属性
今天又重载了PropertyPlaceholderConfigurer,为了把properties中的值拿出来,我重新了processProperties()方法。 获得属性值: spring 2.x:parseStringValue(props.getProperty(keyStr), props,new HashSet()); spring 3.x: resolvePlaceholder...原创 2012-01-10 09:25:55 · 312 阅读 · 0 评论 -
(转)httpInvoke的session问题
<bean id="testService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="${server.URL}testService"/> &am原创 2011-11-15 09:59:25 · 258 阅读 · 0 评论