摘要:
/* * 从配置ApplicationResources.properties获取文件jfDsFtpGtgsPath存取路径 */ public String getApplicationResourcesByKey(String properties,String key){ InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(properties); Properties props = new Properties()... 阅读全文
posted @ 2011-11-02 11:55
方坚.cn
阅读(533)
评论(0)
推荐(0)
摘要:
配置文件放到哪都是可以取到的。。。。。。1、web项目applicationContext.xml在webRoot/web-info/下public class ChaneTest { @Test public void test() { XmlBeanFactory factory = new XmlBeanFactory(new FileSystemResource( "WebRoot/WEB-INF/applicationContext.xml")); //还可以加载其它相关配置文件 factory.add() ... 阅读全文
posted @ 2011-11-02 11:37
方坚.cn
阅读(283)
评论(0)
推荐(0)
摘要:
SELECT * FROM jf_applymain p WHERE (p.cardid,p.acceptdate) IN ( SELECT j.cardid,MAX(j.acceptdate) FROM jf_applymain j WHERE j.isupdated ='1' GROUP BY j.cardid)AND p.syear = (select to_char(sysdate,'yyyy') as nowYear from dual)ORDER BY p.acceptdate DESC得到年份(select to_char(sysdate,' 阅读全文
posted @ 2011-11-02 11:14
方坚.cn
阅读(390)
评论(0)
推荐(0)
摘要:
web.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app 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 http://java.sun.com/xml/ns/j2ee/web-app_ 阅读全文
posted @ 2011-11-02 11:05
方坚.cn
阅读(1205)
评论(0)
推荐(0)
摘要:
log4j.rootLogger=info,consolelog4j.appender.console=org.apache.log4j.ConsoleAppenderlog4j.appender.console.layout=org.apache.log4j.SimpleLayoutlog4j.logger.com.wehave=DEBUG# log4j.logger.org.springframework=DEBUG# SqlMap logging configuration...# log4j.logger.com.ibatis=DEBUG# log4j.logger.com.ibati 阅读全文
posted @ 2011-11-02 10:57
方坚.cn
阅读(433)
评论(0)
推荐(0)
浙公网安备 33010602011771号