spring mvc 4.1 + spring jdbc + jackson2.5 + RESTful CRUD + jquery + ajax loading indicator + security interceptor...
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...
慢慢看吧!这个博客写的真TMD的好。 http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/...
一、pom.xml中加入依赖的jar包(在此感谢osc提供的maven仓库) <!-- json --> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> ...
用户发表文章(Post),在xheditor中写文字和上传图片,交叉进行,图片文件上传到了服务器,图片的名称,url,大小等信息在上传的同时需要单独保存在一张表里。 因此在上一篇的UploadControlle...
xheditor下载地址:http://xheditor.com 扔到WebContent/static/js/xheditor目录下,如图: JSP表单中相应的代码如下,仅仅是个textarea,无需做任何更改: <div class="control-group"> <l...
springside4的form标签解决了Spring tag和bootstrap样式不兼容的问题,见 SpringSide4 Wiki说明 (1)首先将org.springside.modules.web.taglib下面的3个类加到工程 BSAbstractMultiCheckedElem...
spring mvc的表单类型转换太强大了,目前用到了两个简单的, 一个是将表单中的file自动映射成byte[],这样文件上传(如果使用blob)就无需写任何代码了。 另一个是将表单中的yyyy-MM-dd格式映...
在学spring3 mvc,做了个简单的CRUD,但是用户不登录也能直接访问任何页面。我的想法是写个SecurityInterceptor在preHandle中判断session是不是存在user对象。配置如下: <mvc:interceptors...
今天学spring3的jdbc,写了这么段代码 public Hello createHello(final Hello hello) { final String sql = "insert into crud_hello(name,age,money,at_work,icon,introduce,create_...
事务可实现“要么完全成功,要不全部不成功”,保证数据的完整性和一致性,使我们在开发中能方便地实现一些业务逻辑。比如,在股票交易时,除了记录交易的过程,还要更新交易完成之后的账户状...
没有更多内容
加载失败,请刷新页面
没有更多内容
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复