log4j配置文件详解---转
使用步骤注意:1.从http://logging.apache.org/log4j/1.2/下载文件2.在src目录下加入log4j.properties,将jar包放入build-path,log4j.properties编译后位于/classes目录下。3.配置文件读取解析:PropertyCo
Spring 的优秀工具类盘点---转
第1部分:文件资源操作和Web相关工具类http://www.ibm.com/developerworks/cn/java/j-lo-spring-utils1/文件资源操作文件资源的操作是应用程序中常见的功能,如当上传一个文件后将其保存在特定目录下,从指定地址加载一个配置文件等等。我们一般使用JD
详解 Spring 3.0 基于 Annotation 的依赖注入实现--转载
使用@Repository、@Service、@Controller和@Component将类标识为BeanSpring自2.0版本开始,陆续引入了一些注解用于简化Spring的开发。@Repository注解便属于最先引入的一批,它用于将数据访问层(DAO层)的类标识为SpringBean。具体只
spring servlet 扩展undertow
官方地址:http://undertow.io/documentation/servlet/servlet-extensions.html留待学习中,mark一下源码地址:https://github.com/undertow-io/undertow/tree/c3b8a88db6999c231b4
一个Web Project引用多个Java Project在Eclipse下的配置--转载
项目结构:项目由一个WebProject和多个JavaProject构成,WebProject需要引用其它JavaProject的类和Jar包。开发时用Eclipse3.5和Tomcat调试时,出现找不到引用的JavaProject相关类和Jar包。经过一番摸索,终于调通了。以下是具体调试方法。1.
spring servlet 扩展undertow
官方地址:http://undertow.io/documentation/servlet/servlet-extensions.html留待学习中,mark一下源码地址:https://github.com/undertow-io/undertow/tree/c3b8a88db6999c231b4
spring aop 如何切面到mvc 的controller--转载
原文:http://yjian84.iteye.com/blog/1920787网上搜罗半天,不知道什么原因,看了源码,好像他们说的controller是不受代理的,也对哈,不知道怎么办,于是在http://stackoverflow.com/questions/17834958/spring-ao
spring aop 如何切面到mvc 的controller--转载
原文:http://yjian84.iteye.com/blog/1920787网上搜罗半天,不知道什么原因,看了源码,好像他们说的controller是不受代理的,也对哈,不知道怎么办,于是在http://stackoverflow.com/questions/17834958/spring-ao
Spring 3 MVC: Themes In Spring-Tutorial With Examp
WelcometoPart6ofSpring3.0MVCSeries.InpreviousarticlewesawhowtoaddInternationalizationi18nandLocalizationL10nsupporttoSpring3.0basedwebapplication.Weus
easy ui example
http://www.jeasyui.com/tutorial/index.phphttp://www.w3cschool.cc/jeasyui/jqueryeasyui-tutorial.html
java.sql.SQLException: Invalid parameter object ty
java.sql.SQLException:Invalidparameterobjecttype.Expected'java.util.Map'butfound'java.lang.String'原文:http://hi.baidu.com/ideas/item/1e41172f70ac61876f
FastJson解析对象及对象数组--项目经验
第一次使用json,解析工具为FastJson,使用语言为java常见的json解析实例,以map为例:Map<String,String>map=newHashMap<String,String>();map.put("code","0");map.put("message
解读dbcp自动重连那些事---转载
http://agapple.iteye.com/blog/791943可以后另一篇做对比:http://agapple.iteye.com/blog/772507同样的内容,不同的描述方式,不一样的效果.Hiall:最近在做offerdetail优化时,替换了数据库驱动,从c3p00.9.1-&g
阿里巴巴消息系统架构与变迁--转载
原文:http://www.infoq.com/cn/news/2014/03/interview-alibaba-wangjingyu对于大型的互联网业务来说,消息系统是必不可少的基础服务。子柳在《淘宝技术这十年》中为大家展示了阿里消息系统架构的概貌,作为集团业务使用的核心基础服务,目前消息系统现
What is corresponding Cron expression to fire in e
原文地址:http://stackoverflow.com/questions/2996280/what-is-corresponding-cron-expression-to-fire-in-every-x-seconds-where-x-60Question:Iwantmyjobstoexecu
Spring Profiles example--转载
原文地址:http://www.mkyong.com/spring/spring-profiles-example/Spring@Profileallowdeveloperstoregisterbeansbycondition.Forexample,registerbeansbasedonwhato
Linux CentOS PhpMyAdmin安装--转载
原文地址:https://www.centos.bz/2011/04/linux-centos-phpmyadmin-install/安装好PHP,Apache和MySQL程序后,为了管理MySQL数据库,我们需要安装phpMyAdmin程序。下面是关于如何在centos安装phpMyAdmin程序
how to query for a list<String> in jdbctemplate?--
原文地址:http://stackoverflow.com/questions/13354158/how-to-query-for-a-liststring-in-jdbctemplateI'musingspringsjdbctemplateandrunningaquerylikebelow:SEL
spring与memcache的整合
1.pom.xml文件增加:<dependency><groupId>com.whalin</groupId><artifactId>Memcached-Java-Client</artifactId><version>3.0.
spring容器加载完毕做一件事情(利用ContextRefreshedEvent事件)
原文地址:http://zhaoshijie.iteye.com/blog/1974682应用场景:很多时候我们想要在某个类加载完毕时干某件事情,但是使用了spring管理对象,我们这个类引用了其他类(可能是更复杂的关联),所以当我们去使用这个类做事情时发现包空指针错误,这是因为我们这个类有可能已经