![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
imqipan
这个作者很懒,什么都没留下…
展开
-
SpringMVC及在SpringMVC中使用RESTFUL
rest,即REST(Representational State Transfer表述性状态转移)是一种针对网络应用的设计和开发方式,最直观表现就在于URL地址的不一样了,如 http://localhost:801/user/123 http://localhost:801/user/delete/123 ... 基本都没有.html 或 其它后缀什么什么的,而且内容看...原创 2012-06-06 14:55:29 · 78 阅读 · 0 评论 -
SpringMVC中@ResponseBody对UTF-8的支持
由于org.springframework.http.converter.StringHttpMessageConverter中默认的编码为ISO-8859-1,而在使用@ResponseBody时SpringMVC会通过这个类对输出的内容进行编码,所以Ajax在SpringMVC的项目中会乱码... 于是解决方案: ---------------------------...2013-04-09 16:21:07 · 154 阅读 · 0 评论 -
事务无异常回滚(spring rollback without exception)
spring事务无异常回滚 [spring rollback without exception]TransactionInterceptor.CurrentTransactionStatus.RollbackOnly = true或者TransactionInterceptor.currentTransactionStatus().setRollbackOnly();...原创 2014-06-13 16:58:28 · 192 阅读 · 0 评论 -
SpringMVC是内部是怎么工作的
Let us see the flow of spring MVC (3.2). I am not going to describe what is M,V,C hope you already know that mess right ? so lets start with the flow… Spring MVC 3.2 Execution Flow Step 1: First...原创 2015-05-11 15:34:36 · 86 阅读 · 0 评论 -
Mybatis中insert、Update操作返回主键
Mybatis中insert、Update操作返回主键 How to get pk after operation of insert, update in mybatis? 两种方式 1. <insert id="insert" parameterType="User" keyProperty="id" > java代码 调用insert(User ...2015-05-28 23:21:36 · 2155 阅读 · 0 评论