加载中
Spring 4.x MVC and RESTful service Demo

spring mvc 4.1 + spring jdbc + jackson2.5 + RESTful CRUD + jquery + ajax loading indicator + security interceptor...

2015/02/10 00:32
1.5K
spring加密properties中的密码

在properties文件中亮出密码是否安全?

2015/01/21 19:53
1.1K
Spring SimpleFormController

To handle forms in Spring you need to extend your controller class from SimpleFormController class. Here we will create a user registration form to understand how this works. Th...

2014/09/25 12:09
117
spring索引

慢慢看吧!这个博客写的真TMD的好。 http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/...

2014/04/07 11:11
834
url路径传中文显示乱码以及出现乱码解决方案

有时候需要在url路径传递中文,但是却又不想在url上显示中文。可以使用js提供的encodeURI将路径进行编码操作。或者对指定的中文用encodeURIComponent进行编码。 中文显示问题解决了,我们从服...

2013/10/05 15:58
8K
spring mvc处理json

一、pom.xml中加入依赖的jar包(在此感谢osc提供的maven仓库) <!-- json --> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> ...

2013/10/01 14:44
1.9K
spring mvc中引入xheditor的步骤(二)

用户发表文章(Post),在xheditor中写文字和上传图片,交叉进行,图片文件上传到了服务器,图片的名称,url,大小等信息在上传的同时需要单独保存在一张表里。 因此在上一篇的UploadControlle...

2012/11/11 02:17
1.6K
spring mvc中引入xheditor的步骤(一)

xheditor下载地址:http://xheditor.com 扔到WebContent/static/js/xheditor目录下,如图: JSP表单中相应的代码如下,仅仅是个textarea,无需做任何更改: <div class="control-group">   <l...

2012/11/10 16:08
3.9K
使用springside-form tag的步骤

springside4的form标签解决了Spring tag和bootstrap样式不兼容的问题,见 SpringSide4 Wiki说明 (1)首先将org.springside.modules.web.taglib下面的3个类加到工程 BSAbstractMultiCheckedElem...

2012/11/08 18:00
3.2K
spring mvc的表单类型转换(custom property editor)

spring mvc的表单类型转换太强大了,目前用到了两个简单的, 一个是将表单中的file自动映射成byte[],这样文件上传(如果使用blob)就无需写任何代码了。 另一个是将表单中的yyyy-MM-dd格式映...

Spring3 MVC Login Interceptor

在学spring3 mvc,做了个简单的CRUD,但是用户不登录也能直接访问任何页面。我的想法是写个SecurityInterceptor在preHandle中判断session是不是存在user对象。配置如下:   <mvc:interceptors...

2012/10/18 00:00
6.3K
解决spring jdbc中出现的java.io.NotSerializableException

今天学spring3的jdbc,写了这么段代码 public Hello createHello(final Hello hello) { final String sql = "insert into crud_hello(name,age,money,at_work,icon,introduce,create_...

使用事务时应该避免的陷井

事务可实现“要么完全成功,要不全部不成功”,保证数据的完整性和一致性,使我们在开发中能方便地实现一些业务逻辑。比如,在股票交易时,除了记录交易的过程,还要更新交易完成之后的账户状...

2012/09/28 22:58
145
不使用事务和使用只读事务的区别

转转转,,还需要具体验证( 决定把readonly类型的事务完全去掉,以提高性能,这里有讨论:http://stackoverflow.com/questions/2562865/spring-transaction-readonly )。。。 如果只提交一个...

2012/09/28 20:53
1.2W

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部