最新文章列表

使用Spring MVC拦截器实现日记记录

定义一个类实现HandlerInterceptor public class MyInterceptors implements HandlerInterceptor{ /** * 在渲染视图之后被调用; * 可以用来释放资源 */ public void afterCompletion(HttpServletRequest ...
sichunli_030 评论(0) 有491人浏览 2016-07-19 16:30

解决spring mvc JSON 无法转换对象为json格式 无限死循环

控制台出现如下循环异常: at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150) at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112) ...
wgy1160754366 评论(0) 有1298人浏览 2016-07-07 23:51

javascript mvc 代码

    javascript mvc 代码示例: function Model(value) { this._value = typeof value === 'undefined' ? '' : value; this._listeners = []; } Model.prototype.set = function (value) { ...
knight_black_bob 评论(0) 有526人浏览 2016-06-28 15:01

Spring MVC 用拦截器+token防止重复提交

最近再开发一个图书管理的项目,在线发布图书的时候,明明只点击了一下,偏偏却保存了多条记录,无奈之下只好加拦截器防止重复提交: 1:首先定义注解: 首先自定义一个注解: package com.dinfo.interceptor; import java.lang.annotation.ElementType; import java.lang.annotation.Retenti ...
郑云飞 评论(3) 有10026人浏览 2016-06-27 10:19

Spring MVC中文文档翻译发布

前后经过九个月,我翻译的Spring MVC官方4.2.4版本中文文档可以发布第一个较为完整的版本了。译文上尽量做到准确并且符合中文习惯,让人能读懂,能理解。现全文发布如下,也希望它能够给出其价值,并收到反馈。 七牛主站:mvc.linesh.tw 备份镜像:一个奇怪的域名(主站不稳定时使用) Gitbook原站(墙内访问较慢,且不太稳定) 阅读过程任何想法、建议、吐槽、 ...
sodagreen.simplicity 评论(3) 有15905人浏览 2016-06-25 15:39

Spring Mvc 文件下载Demo

传统代码: @RequestMapping("file/download") public void fileDownload(HttpServletResponse response, HttpServletRequest request) { response.setCharacterEncoding("utf-8"); ...
zql3315 评论(0) 有932人浏览 2016-06-24 10:25

Part 8: Understanding Backbone.js Events

In this article, we will look at events in Backbone.js. We will see how backbone provides us events and how we can use backbone events in our application. Background Events are a vital part of any ap ...
since1027 评论(1) 有829人浏览 2016-06-22 10:34

Part 7: Understanding Backbone.js Routes and History

In this article, we will try to look at Routes in Backbone.js. We will try to understand how routes can be useful in a large scale single page applications and how we can use routes to perform action b ...
since1027 评论(0) 有571人浏览 2016-06-22 09:52

Part 6: Understanding Backbone.js Views

In this article, we will try to look at the View classes in Backbone.js and see how view classes help us in updating the relevant parts of the application easily. Background The biggest problem while ...
since1027 评论(0) 有741人浏览 2016-06-22 09:50

Part 5: Understanding Backbone.js Collections

In this article we will discuss about Backbone.js collections. We will see how we can use collections to manipulate a group of models and how we can use restul API to easily fetch and save collections. ...
since1027 评论(0) 有653人浏览 2016-06-21 14:39

Part 4: CRUD Operations on BackboneJs Models using HTTP REST Service

In this article we will discuss how we can perform CRUD operations on a backbone model using a REST based HTTP service. Background Earlier we have discussed about the benefits of using backbone.js an ...
since1027 评论(0) 有930人浏览 2016-06-21 14:21

Part 3: More about Backbone Models

In this article we will look at some more concepts related to backbone models. We will try to see how we can override the default model behavior. We will look at the signification of model IDs, how we ...
since1027 评论(0) 有783人浏览 2016-06-21 14:08

Part 2: Understanding the basics of Backbone Models

When we talk about any MV* pattern, model is undoubtedly the most important part of the architecture/application. Its the model that contains all the application data. Along with keeping the data the m ...
since1027 评论(0) 有680人浏览 2016-06-21 12:55

Part 1: Introduction to Backbone.Js

It was a long time ago (almost a decade back) when most software applications were getting built as standalone applications. These applications were targeted at a single user and ran on their operating ...
since1027 评论(0) 有726人浏览 2016-06-21 11:12

Apache OFBiz源码解读之MVC模型

节点解析 request-map 你可以将其理解为controller的配置,如果你了解或使用过struts的配置或springmvc的annotation,就会发现这个定义跟它们是很相似的: [html] ...
mvc 
火乐的春天 评论(0) 有318人浏览 2016-06-21 11:10

springmvc集成mybatis

转自 http://www.demohot.com/demo/4 整合spring+mybatis 使用前,需执行提供的sql脚本 更改jdbc.properties文件 主要配置文件 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www. ...
tyymj 评论(0) 有510人浏览 2016-06-16 09:40

Spring Data MongoDB 实例参考

节选择《Netkiller java 手札》   11.6.2. Spring Data MongoDB 11.6.2.1. pom.xml 注意Spring4 与 1.9.1.RELEASE有兼容性问题,日志提示 Error creating bean with name 'mongoTemplate' defined in ServletContext resou ...
netkiller.github.com 评论(0) 有928人浏览 2016-06-15 08:54

mvc 返回字符设置(null空返回“”,xxs注入,日期转化等)

1, xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.spri ...
y806839048 评论(0) 有1244人浏览 2016-06-08 16:55

Struts2和SpringMVC处理过程

Struts2和SpringMVC处理过程甚为经典,经常被提及。现整理一下。 Struts2的工作机制 一个请求在Struts2框架中的处理大概分为以下几个步骤: 1、客户端初始 ...
MVC 
h_1_y_m 评论(0) 有393人浏览 2016-06-07 15:52

Spring MVC自动为对象注入枚举数据

一、实现转换工厂,定义转换实现,如下:     package com.mafwo;import org.springframework.core.convert.converter.Converter;import org.springframework.core.convert.converter.ConverterFactory;import java.lang.reflect.I ...
xiuluocd 评论(0) 有4391人浏览 2016-06-01 21:40

最近博客热门TAG

应用服务器(43288) Spring(40812) Hibernate(33330) Tomcat(28345) 框架(27200) 设计模式(24056) Servlet(23313) Struts(22805) Bean(22194) 企业应用(18268) thread(15826) 多线程(14801) SUN(11436) 虚拟机(11382) Cache(11314) Security(8002) SSH(7109) DAO(6880) MVC(6206) AOP(6187)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics