09 2012 档案

摘要:<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </e 阅读全文
posted @ 2012-09-30 22:13 daveztong 阅读(288) 评论(0) 推荐(0) 编辑
摘要:I use the eclipse webtools plugin, and run my Tomcat from it. It has a republish method that publishes the jars as well (if not, you just clean the directory and republish).In the pom file, you should have the following lines so that the webtools will be supported automatically<build> ... < 阅读全文
posted @ 2012-09-30 15:54 daveztong 阅读(220) 评论(0) 推荐(0) 编辑
摘要:To make the warning go away, open terminal and write:sudo mkdir -p /root/.local/shareAs it so happens the directory which does not exist is a directory which is not supposed to exist in the first place. (~/.local being what it is).Move away your user’s /home/.local/share folder and start gedit.Gedit 阅读全文
posted @ 2012-09-30 12:10 daveztong 阅读(809) 评论(0) 推荐(0) 编辑
摘要:This is guide, howto install Adobe Flash Player Plugin version 11.2 (32-bit and 64-bit) with YUM on Fedora 17/16/15/14/13/12, CentOS 6.3/6.2/6.1/6/5.8 and Red Hat (RHEL) 6.3/6.2/6.1/6/5.8. Using Adobe’s own YUM repository it is very easy also keep up-to-date with Flash Player Plugin. Finally also na 阅读全文
posted @ 2012-09-29 16:19 daveztong 阅读(605) 评论(0) 推荐(0) 编辑
摘要:In my case, the problem was caused by deleting the connection with orphaned document changes.The solution for Linux-Mint:Locate ~/.mysql/workbench/sql_workspaces/your connection name.autosave directoryDelete it.On Windows, the above directory should be located at:C:\Users\Administrator\AppData\Roami 阅读全文
posted @ 2012-09-26 09:12 daveztong 阅读(871) 评论(0) 推荐(0) 编辑
摘要:Quercus的用法其实就是一个Servlet下载Quercus:http://quercus.caucho.com/ (下载war文件,在web-inf/lib/下提取 inject-16.jar resin.jar 两个包,至于mail.jar的话,用到在找)修改web.xml,加入如下servlet映射:1 <servlet>2 <servlet-name>Quercus Servlet</servlet-name>3 <servlet-class>com.caucho.quercus.servlet.QuercusServlet</ 阅读全文
posted @ 2012-09-19 21:35 daveztong 阅读(263) 评论(0) 推荐(0) 编辑
摘要:Spring 3.0.5的,更细颗粒化的缓存设置,更方便的注解,可以具体到把每个方式的返回值做缓存,需要 ehcache-spring-annotations-1.1.xapplicationContext.xml 1 <beans xmlns="http://www.springframework.org/schema/beans" 2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xmlns:aop="http://www.springframework.org/sch 阅读全文
posted @ 2012-09-18 16:49 daveztong 阅读(1093) 评论(0) 推荐(0) 编辑
摘要:DWR是方便使用AJAX连接JS和JAVA的的一个框架,把服务器端 Java 对象的方法公开给 JavaScript 代码。如果是用dwr2.0的jar包,还需要同时导入log4j.jar和commons-loggin.jar,勿忘!!web.xml和dwr.xml放在WEB-INF下!-----------------------------配置web.xml:WEB工程启动的时候会在这个里面找到具体所用到的类的路径,由此进行加载<servlet> <servlet-name> dwr-invoke </servlet-name> <servlet- 阅读全文
posted @ 2012-09-12 16:13 daveztong 阅读(190) 评论(0) 推荐(0) 编辑
摘要:UseDWR`sConvert--DWR的学习可以通过访问文档来得知如何使用DWR的转换器:http://directwebremoting.org/dwr/documentation/server/configuration/dwrxml/converters/index.html下面我们来一步步讲解:1.转换器(convert)用于负责定义Java类型和js类型之间的对应关系,看看文档的说辞:Converters are an integral part of DWR and are responsible for marshaling data between the client an 阅读全文
posted @ 2012-09-12 16:06 daveztong 阅读(1457) 评论(0) 推荐(0) 编辑
摘要:卸载ADT的方法,方法如下(我的Eclipse版本为3.5):1、选择 Help > Install New Software;2、在"Details" 面板中, 点击"What is already installed?" 链接;3、在Eclipse Installation Details 对话框中,选择"Android DDMS"和"Android Development Tools" ,然后点击Uninstall;4、在下一个窗口中,确认要删除的ADT,然后点击Finish进行删除;5、重启Eclip 阅读全文
posted @ 2012-09-07 11:20 daveztong 阅读(3054) 评论(0) 推荐(0) 编辑
摘要:A、@SessionAttributesorg.springframework.web.bind.annotation.SessionAttributespublic @interface SessionAttributesAnnotation that indicates the session attributes that a specific handler uses. This will typically list the names of model attributes which should be transparently stored in the session or 阅读全文
posted @ 2012-09-03 12:19 daveztong 阅读(2467) 评论(0) 推荐(0) 编辑
摘要:@ExceptionHandlerorg.springframework.web.bind.annotation.ExceptionHandlerpublic @interface ExceptionHandlerAnnotation for handling exceptions in specific handler classes and/or handler methods. Provides consistent style between Servlet and Portlet environments, with the semantics adapting to the con 阅读全文
posted @ 2012-09-03 12:19 daveztong 阅读(1421) 评论(0) 推荐(0) 编辑
摘要:@InitBinderorg.springframework.web.bind.annotation.InitBinderpublic @interface InitBinderAnnotation that identifies methods which initialize the WebDataBinder which will be used for populating command and form object arguments of annotated handler methods.由这个注释标识的方法,它初始化WebDataBinder,这个WebDataBinder 阅读全文
posted @ 2012-09-03 12:18 daveztong 阅读(1738) 评论(0) 推荐(0) 编辑
摘要:A、@ModelAttributeAnnotation that binds a method parameter or method return value to a named model attribute, exposed to a web view. Supported for RequestMapping annotated handler classes.在被@RequestMapping注释的处理器类中,这个注释可以绑定一个方法参数或绑定一个方法的返回值到一个命名的模型属性,提供给一个视图。Can be used to expose command objects to a 阅读全文
posted @ 2012-09-03 11:51 daveztong 阅读(1362) 评论(0) 推荐(1) 编辑
摘要:下列参数一般都和@RequestMapping配合使用。A、@CookieValueorg.springframework.web.bind.annotation.CookieValuepublic @interface CookieValueAnnotation which indicates that a method parameter should be bound to an HTTP cookie. Supported for annotated handler methods in Servlet and Portlet environments.这个注释表示一个方法参数绑定到一 阅读全文
posted @ 2012-09-03 11:50 daveztong 阅读(1644) 评论(0) 推荐(0) 编辑
摘要:A、@RequestMappingorg.springframework.web.bind.annotation.RequestMappingAnnotation for mapping web requests onto specific handler classes and/or handler methods. Provides consistent style between Servlet and Portlet environments, with the semantics adapting to the concrete environment.@RequestMapping 阅读全文
posted @ 2012-09-03 11:48 daveztong 阅读(18356) 评论(0) 推荐(0) 编辑
摘要:基于注释的控制器配置需要Java 5以上的版本支持。这种注释支持servlet MVC和Portlet MVC。通过这种方式实现的控制器不需要继承特定的基础类,或实现特定的接口。A、Dispatcher配置文件DispatcherServlet和DispatcherPortlet都默认支持注释配置控制器。以DispatcherServlet为例,它默认支持实现HandlerMapping接口的DefaultAnnotationHandlerMapping和实现HandlerAdapter接口的AnnotationMethodHandlerAdapter来支持注释配置控制器。所有我们无需在Dis 阅读全文
posted @ 2012-09-03 11:45 daveztong 阅读(1353) 评论(0) 推荐(0) 编辑
摘要:URLPath匹配原则路 径匹配原则(Path Matching) Spring MVC中的路径匹配要比标准的web.xml要灵活的多。默认的策略实现了 org.springframework.util.AntPathMatcher,就像名字提示的那样,路径模式是使用了Apache Ant的样式路径,Apache Ant样式的路径有三种通配符匹配方法(在下面的表格中列出)这些可以组合出很多种灵活的路径模式Table Ant Wildcard CharactersWildcardDescription?匹配任何单字符*匹配0或者任意数量的字符**匹配0或者更多的目录Table Example A 阅读全文
posted @ 2012-09-02 13:47 daveztong 阅读(2079) 评论(0) 推荐(1) 编辑
摘要:先让我们来看一段摘自《Spring 2.5 Reference 中文版》(http://www.redsaga.com/spring_ref/2.5/spring-reference.pdf)的一段关于FileUpload的开场描述: "Spring支持web应用中的分段文件上传。这种支持是由即插即用的MultipartResolver来实现。这些解析器都定义在org.springframework.web.multipart包里。Sprig提供了现成的MultipartResolver可以支持Commons FileUpload(http://jakarta.apache.org/ 阅读全文
posted @ 2012-09-01 15:29 daveztong 阅读(1760) 评论(0) 推荐(0) 编辑
摘要:Since I spent a lot of time on this issue, I thought I'd share my solution. Since spring 3.0.4, there is a configuration parameter that is called<mvc:resources/>(more about that on thereference documentation website) which can be used to serve static resources while still using the Dispatc 阅读全文
posted @ 2012-09-01 12:48 daveztong 阅读(2010) 评论(0) 推荐(0) 编辑