
spring
iteye_9434
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring <aop:pointcut>标签 expression属性如何定义路径
[url]http://zhidao.baidu.com/question/497318436.html[/url] execution(* com.aptech.jb.epet.dao.hibimpl.*.*(..)) 这样写应该就可以了 这是com.aptech.jb.epet.dao.hibimpl 包下所有的类的所有方法。。 第一个*代表所有的返回值类型 第二个*代表所有的类...原创 2013-06-24 14:55:24 · 409 阅读 · 0 评论 -
spring 中的 RowMapper
文章来源:[url]http://blog.163.com/xueling1231989@126/blog/static/10264080720111124114752189/[/url] sping中的RowMapper可以将数据中的每一行数据封装成用户定义的类. 我们在数据库查询中,如果返回的类型是用户自定义的类型(其实我们在数据库查询中大部分返回的都是自定义的类)则需要包装...原创 2013-03-06 17:32:26 · 262 阅读 · 0 评论 -
CommonsMultipartFile文件上传
[quote]jsp: [/quote] [code="java"] MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; CommonsMultipartFile orginalFile = (CommonsMultipartFile) multipart...原创 2012-06-07 17:19:09 · 642 阅读 · 0 评论 -
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep
先将其注掉。@Controller org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring-mvc.xml]; nested exception ...原创 2012-05-18 11:03:49 · 1063 阅读 · 0 评论 -
Spring参考手册 mvc:default-servlet-handler
Spring参考手册 mvc:default-servlet-handler This tag allows for mapping the DispatcherServlet to "/" (thus overriding the mapping of the container's default Servlet), while still allowing static resourc...原创 2012-05-14 09:02:42 · 94 阅读 · 0 评论 -
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
在Spring与Hibernate集成时在web.xml要加入这样的过滤器: openSessionInView org.springframework.orm.hibernate3.support.OpenSessionInViewFilter sessionFactoryBeanName sessionFactory openSessionInView /...原创 2012-05-13 19:18:00 · 147 阅读 · 0 评论 -
BeanNotOfRequiredTypeException: ***but was actually of type [$Proxy6]
BeanNotOfRequiredTypeException: ***but was actually of type [$Proxy6] 博客分类: 异常汇总 BeanNotOfRequiredTypeExceptionCGLIB 今天自己搭建框架的时候,出了这个问题,出现这个异常,spring框架AOP才用JDK动态代理只能对实现了接口的类实现动态代理,而不能针对类,我自己在搭建项目...原创 2012-05-12 08:50:56 · 96 阅读 · 0 评论 -
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bea
解决办法:要将注册在action里的属性改成接口,比如IBaseService userService Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'courseInfoService' must be of type [com.ambow.lmsx.enrol...原创 2012-05-12 08:49:55 · 822 阅读 · 0 评论 -
java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model
java.lang.IllegalStateException: Argument [RedirectAttributes] is of type Model or Map but is not assignable from the actual model. You may need to switch newer MVC infrastructure classes to use this ...原创 2012-05-12 08:48:45 · 216 阅读 · 0 评论 -
@PathVariable和@RequestParam的区别
请求路径上有个id的变量值,可以通过@PathVariable来获取 [java] view plaincopyprint? @RequestMapping(value = "/page/{id}", method = RequestMethod.GET) @RequestParam用来获得静态的URL请求入参 spring注解时action里用到。...原创 2012-05-12 08:47:55 · 95 阅读 · 0 评论 -
坑爹的spring3.1加jackson的json中文乱码
web开发遇到json中文乱码,上网查并吸取众长,解决如下: [code="java"] import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.UnsupportedEncodingException; import ...原创 2013-03-18 17:16:29 · 390 阅读 · 0 评论