`
jerryzxm
  • 浏览: 49123 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论
文章列表
  好吧,我承认,MyEclipse这东西是很好用,但是问题也多多。折腾了两小时spring libs之后,再加上jackson 1.8.0,一切正常。   spring-framework-3.0.5 + jackson-1.8.0-all + n多spring依赖的jar     以下内容仅供参考,是MyEclipse带的spring-3.0.1,然后加上自己下载的jackson lib。   spring mvc很不错,就是json支持很折腾人,jquery getJSON请求返回406 not acceptable   搜了半天,看了一堆文章帖子,各种网站都看过了,javaey ...
form中包含一个id="reset"的元素,修改id即可 参考:http://www.92798.com/post/147.html   document.getElementById(sid).options.length = 0;
需要修改web.xml中的struts2过滤器 <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.do</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping>  
错误:  Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public"   解决:  excludeProperties: \S+.hibernateLazyInitializer <result name="success" type="json&q ...
1. form提交的action错误 2. 没有getter/setter方法 3. 没有无参的构造函数     [WARN ] [10:00:22] com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression 'post.content' with value '[Ljava.lang.String;@1fba8a1' ognl.OgnlException: target is null for setProperty(null, "content", [Ljava.lang.St ...
生成的注解都没问题, 问题在于hibernate/spring的配置上缺少Post类   <property name="annotatedClasses"> <list> <value>demo.springsecurity.model.Role</value> <value>demo.springsecurity.model.Authority</value> <value>demo.springsecurity.model.User</value&g ...
一个空格折腾了一个多小时, 从网上拷过来的配置, 后面跟了个空格, 在表情的位置   fckeditor.properties connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction     type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. except ...
非原创, 只做记录用, http://blog.csdn.net/zhoutao198712/archive/2008/10/19/3104755.aspx   org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (2953685) exceeds the configured maximum (171520)   在struts2配置文件中添加, 指定自己的最大值   <constant name=& ...
非原创, 只做记录用 http://www.iteye.com/topic/568775   json插件默认格式化java.util.Date类型的格式如2010-12-22T10:26:50, 需要添加@JSON(format="yyyy-MM-dd HH:mm:ss")   @JSON(format="yyyy-MM-dd HH:mm:ss") public Date getPostDate() { return this.postDate; }  
备忘,非原创,参考:http://rhuichao.iteye.com/blog/617201   java.lang.Exception: No Certificate file specified   <Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"                 maxThreads="150" scheme="https" ...
Global site tag (gtag.js) - Google Analytics