- 博客(4)
- 资源 (7)
- 收藏
- 关注
原创 springmvc自定义参数绑定用户信息
通常,我们会把用户信息存放在session里面作为一个属性。就像这样。session.setAttribute(“userinfo”,userinfo)。但是这样做每次在方法前必须要先从request中获取值,这样很麻烦。但是通过spring的自定义的参数绑定可以通过自定义注解的方式来绑定参数,直接将userinfo作为参数来获取。以下是相关代码和文件配置。1.定义一个自定义注解。这里我的注解名为:
2017-01-18 11:18:45 1862
原创 spring 配置问题:The prefix "util" for element "util:list" is not bound"
在spring的头部文件中没有引入: xmlns:util=”http://www.springframework.org/schema/util”
2017-01-06 13:05:49 3634
原创 spring 启动日志报 DEBUG BeanNameUrlHandlerMapping:86 - Rejected bean name 'org.springframework.web.servl
:86 - Rejected bean name ‘applicationEventMulticaster’: no URL paths identified 0:48:46,197 DEBUG DefaultAnnotationHandlerMapping:86 - Rejected bean name ‘org.springframework.context.annotation.intern
2017-01-06 10:31:19 4611 5
转载 mysql数据类型 int、tinyint、float与decimal的区别
1.int、tinyint、float. 它们都是(精确)整型数据类型,但是占用字节数和表达的范围不同。首先没有这个表就说不过去了: 只需要知道对应类型占多少字节就能推算出范围了,比如int占 4 bytes,即4*8=32bits,大约10位数字,也能理解为什么int默认显示位数是11。 遇到比较多的是tinyint和bigint,tinyint一般用于存放status,type这种数值小的
2017-01-04 16:19:51 24401
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人