Spring MVC的@ResponseBody回来JSON串
摘要:1 406错误 不用动,请求的时候URL的文件扩展名应为json @ResponseBody会根据扩展名,或者Header,或者Parameter来判断要返回的具体格式 application/json 2 failed to lazily initialize a collection of role加入OpenSessionInViewFilter过滤器
阅读全文
posted @
2014-01-23 11:18
网络大豆
阅读(389)
推荐(0) 编辑
Spring帖子汇总
摘要:SpringMVC表单标签简介http://haohaoxuexi.iteye.com/blog/1807330Spring MVC 教程,快速入门,深入分析http://elf8848.iteye.com/blog/875830/
阅读全文
posted @
2014-01-21 17:04
网络大豆
阅读(127)
推荐(0) 编辑
Spring 3 MVC and JSR303 @Valid example
摘要:http://www.mkyong.com/spring-mvc/spring-3-mvc-and-jsr303-valid-example/————————————————————————————————————————————————————————用jsr303验证表单数据,搞了很长时间,验证倒是验证了,但是@Valid不起作用,表现是:无论是否加@Valid, 都会验证,并且spring无法捕获到异常BindingResult.hasErrors始终是false。上面那个例子就可以。具体原因还不是很明了,按上面那个例子,对有问题的项目做如下处理:1 使用2 去掉DefaultAnnot
阅读全文
posted @
2014-01-21 11:16
网络大豆
阅读(653)
推荐(0) 编辑
Caused by: java.lang.OutOfMemoryError: PermGen space
摘要:http://blog.csdn.net/yeahwell/article/details/8631708———————————————————————————————————————————————— 异常: 项目中遇到了系统停止响应的问题,查看日志发现Tomcat报告Caused by: java.lang.OutOfMemoryError: PermGen space异常,开始以为是程序内存泄漏导致的内存溢出,网上查了一下,原来是另有原因,不过确实是内存溢出。 原因: PermGen space的全称是Permanent Generation space,是指内存的永久保存区域,这块..
阅读全文
posted @
2014-01-20 15:21
网络大豆
阅读(1902)
推荐(0) 编辑
Spring MVC表单提交中文数据出现乱码
摘要:http://jiessiedyh.iteye.com/blog/475541http://bigcat.easymorse.com/?p=474Spring MVC 教程,快速入门,深入分析http://elf8848.iteye.com/blog/875830/————————————————————————————————————————————————最近用spring mvc ,security做项目,中文的乱码问题解决方法如下: 在web.xml文件中加入filter即可: Set Character Encoding org.springframework...
阅读全文
posted @
2014-01-20 15:17
网络大豆
阅读(1100)
推荐(0) 编辑
Div+CSS布局入门教程
摘要:http://www.blueidea.com/tech/site/2006/3574.asp——————————————————————————————————————————————————————————————————————
阅读全文
posted @
2014-01-19 15:04
网络大豆
阅读(180)
推荐(0) 编辑
java.lang.OutOfMemoryError: PermGen space及其解决方法
摘要:http://blog.csdn.net/fengyie007/article/details/1780375—————————————————————————————————————————————————————————————PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大内存。说说为什么会内存益出:这一部分用于存放Class和Meta的信息,Class在被 Load的时候被放入PermGen space区域,它和和存放I
阅读全文
posted @
2014-01-18 10:42
网络大豆
阅读(188)
推荐(0) 编辑
mysql 连接url中useUnicode=true&characterEncoding=UTF-8 的作用
摘要:http://www.cnblogs.com/xuefuwu/archive/2012/05/06/2486577.html——————————————————————————————————————————————————————————————我们在连接mysql数据库的时候一般都会在url后面添加useUnicode=true&characterEncoding=UTF-8 ,但是问什么要添加呢?添加的作用是:指定字符的编码、解码格式。 例如:mysql数据库用的是gbk编码,而项目数据库用的是utf-8编码。这时候如果添加了useUnicode=true&charact
阅读全文
posted @
2014-01-18 09:05
网络大豆
阅读(238)
推荐(0) 编辑
Spring3.2.6 + hibernate4.2.8 + hibernate-generic-dao1.2.0
摘要:n多方法都不成功,最后在hibernate-generic-dao官网上的例子hibernate-maven-web(使用其jar包及配置,并将hibernate更新为4.2.8,加入ehcache及c3p0数据库连接池)由于hibernate-generic-dao1.2.0只支持JPA2.0,而hibernate4.3.0开始支持JPA2.1,故选择hibernate4.2.8版本。而Spring3.2.6是spring3最后的发布版。————————————————————————————————————————————————————
阅读全文
posted @
2014-01-17 11:21
网络大豆
阅读(267)
推荐(0) 编辑
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)什么意思??
摘要:从hibernate2.1开始ehcache已经作为hibernate的默认缓存方案(二级缓存方案 sessionfactory级别), 在项目中有针对性的使用缓存将对性能的提升右很大的帮助。 要使用 Ehcache:需要一下步骤 一,classpath添加相应的jar(ehcache,commons-logging) 二,然后在hibernate.cfg.xml中配置 org.hibernate.cache.EhCacheProvider true true 说明:如果没有配置true(默认false) 将会产生根据单个id查询的情况(产生很多sql)。 三,为需要缓存的类添加...
阅读全文
posted @
2014-01-14 15:02
网络大豆
阅读(4461)
推荐(0) 编辑
TextFlow with JavaFX 2
摘要:http://sahits.ch/blog/?p=2372————————————————————————————————————————————————————TextFlow with JavaFX 2When ever you want to display a large portion of text in your application the Text node is your friend. Text allows you to define a wrapping width and thereby allows nice multyline text without let
阅读全文
posted @
2014-01-14 14:17
网络大豆
阅读(875)
推荐(0) 编辑
搞IT的技术人员为什么会如此苦逼
摘要:http://www.cnblogs.com/springmvc-hibernate/archive/2012/05/10/2493733.html——————————————————————————————————————————————————————为什么苦逼? 原因一大堆,对于外部的因数,我们很难控制,例如中国的IT国情和对技术人员的观念。但是,在商业中有这样一句话可以借鉴一下:经济再萧条,也有人在赚钱;形式再好,也有很多人在亏本,很多的公司在倒闭。 很多的时候,我们倒苦水,但是心里要知道:是大的环境让我们苦逼,还是我们本身就得苦逼,换句话说,苦逼是我们自己应得的。这话很多人不爱听,但
阅读全文
posted @
2014-01-13 16:16
网络大豆
阅读(326)
推荐(0) 编辑
Spring MVC3.0.5搭建全程
摘要:http://aokunsang.iteye.com/blog/1279322——————————————————————————————————————————————————
阅读全文
posted @
2014-01-13 14:46
网络大豆
阅读(179)
推荐(0) 编辑
JetNuke笔记 ( by quqi99 )
摘要:http://blog.csdn.net/quqi99/article/details/1624223—————————————————————————————————————————————————————————— JetNuke笔记 ( by quqi99 ) 作者:张华 发表于:2007-05-24 ( http://blog.csdn.net/quqi99 )版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明。 JetNuke示范网站: http://www.kuayue.com...
阅读全文
posted @
2014-01-09 16:19
网络大豆
阅读(354)
推荐(0) 编辑
What is the difference between application server and web server?
摘要:http://stackoverflow.com/questions/936197/what-is-the-difference-between-application-server-and-web-server/936257#936257——————————————————————————————————————————————————————————Most of the times these terms Web Server and Application server are used interchangeably.Following are some of the key dif
阅读全文
posted @
2014-01-09 09:32
网络大豆
阅读(380)
推荐(0) 编辑
Customize Netbeans Platform Splash Screen and About Dialog
摘要:原帖一直打不开,通过谷歌翻译找到的http://blogs.kiyut.com/tonny/2007/10/18/customize-netbeans-platform-splash-screen-and-about-dialog/http://translate.google.com.hk/translate?hl=zh-CN&sl=en&tl=zh-CN&u=http%3A%2F%2Fblogs.kiyut.com%2Ftonny%2F2007%2F10%2F18%2Fcustomize-netbeans-platform-splash-screen-and-abo
阅读全文
posted @
2014-01-05 15:37
网络大豆
阅读(994)
推荐(0) 编辑