本月博客排行
-
第1名
龙儿筝 -
第2名
zysnba -
第3名
johnsmith9th - wy_19921005
- sgqt
年度博客排行
-
第1名
宏天软件 -
第2名
青否云后端云 -
第3名
龙儿筝 - gashero
- wallimn
- vipbooks
- wy_19921005
- benladeng5225
- fantaxy025025
- javashop
- qepwqnp
- e_e
- 解宜然
- zysnba
- ssydxa219
- sam123456gz
- ranbuijj
- arpenker
- tanling8334
- kaizi1992
- sichunli_030
- xpenxpen
- gaojingsong
- wiseboyloves
- xiangjie88
- ganxueyun
- xyuma
- wangchen.ily
- jh108020
- zxq_2017
- jbosscn
- lemonhandsome
- luxurioust
- Xeden
- lzyfn123
- forestqqqq
- zhanjia
- nychen2000
- ajinn
- wjianwei666
- johnsmith9th
- hanbaohong
- daizj
- 喧嚣求静
- silverend
- mwhgJava
- kingwell.leng
- lchb139128
- lich0079
- kristy_yy
最新文章列表
使用Spring MVC拦截器实现日记记录
定义一个类实现HandlerInterceptor
public class MyInterceptors implements HandlerInterceptor{
/**
* 在渲染视图之后被调用;
* 可以用来释放资源
*/
public void afterCompletion(HttpServletRequest ...
解决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)
...
javascript mvc 代码
javascript mvc 代码示例:
function Model(value) {
this._value = typeof value === 'undefined' ? '' : value;
this._listeners = [];
}
Model.prototype.set = function (value) {
...
Spring MVC 用拦截器+token防止重复提交
最近再开发一个图书管理的项目,在线发布图书的时候,明明只点击了一下,偏偏却保存了多条记录,无奈之下只好加拦截器防止重复提交:
1:首先定义注解:
首先自定义一个注解:
package com.dinfo.interceptor;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retenti ...
Spring MVC中文文档翻译发布
前后经过九个月,我翻译的Spring MVC官方4.2.4版本中文文档可以发布第一个较为完整的版本了。译文上尽量做到准确并且符合中文习惯,让人能读懂,能理解。现全文发布如下,也希望它能够给出其价值,并收到反馈。
七牛主站:mvc.linesh.tw
备份镜像:一个奇怪的域名(主站不稳定时使用)
Gitbook原站(墙内访问较慢,且不太稳定)
阅读过程任何想法、建议、吐槽、 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
Apache OFBiz源码解读之MVC模型
节点解析
request-map
你可以将其理解为controller的配置,如果你了解或使用过struts的配置或springmvc的annotation,就会发现这个定义跟它们是很相似的:
[html] ...
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. ...
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 ...
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 ...
Spring MVC自动为对象注入枚举数据
一、实现转换工厂,定义转换实现,如下:
package com.mafwo;import org.springframework.core.convert.converter.Converter;import org.springframework.core.convert.converter.ConverterFactory;import java.lang.reflect.I ...