
Spring
caijian_0834
这个作者很懒,什么都没留下…
展开
-
常用Spring MVC获取请求参数的几种方法
1、使用HttpServletRequest获取@RequestMapping("/login.do") public String login(HttpServletRequest request){ String name = request.getParameter("name") String pass = request.getParameter("p原创 2017-08-09 10:20:54 · 661 阅读 · 0 评论 -
bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed
错误代码(贴的前部分):org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemService': Injection of autowired dependencies failed; nested exception is org.springframework.原创 2017-08-09 20:54:48 · 10732 阅读 · 0 评论 -
SpringMVC的工作流程
1. 用户发送请求至前端控制器DispatcherServlet2. DispatcherServlet收到请求调用HandlerMapping处理器映射器。3. 处理器映射器根据请求url找到具体的处理器,生成处理器对象及处理器拦截器(如果有则生成)一并返回给DispatcherServlet。4. DispatcherServlet通过HandlerAdapter处理器适配器调用处转载 2017-08-16 23:11:38 · 4043 阅读 · 1 评论 -
Spring常用注解(持续更新)
@Controller在SpringMVC 中,控制器Controller 负责处理由DispatcherServlet 分发的请求,它把用户请求的数据经过业务处理层处理之后封装成一个Model ,然后再把该Model 返回给对应的View 进行展示。在SpringMVC 中提供了一个非常简便的定义Controller 的方法,你无需继承特定的类或实现特定的接口,只需使用@Controller原创 2017-08-16 23:08:13 · 255 阅读 · 0 评论 -
No EntityManager with actual transaction available for current thread - cannot reliably process 'mer
No EntityManager with actual transaction available for current thread - cannot reliably process 'merge' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with ...原创 2018-03-28 11:39:51 · 2774 阅读 · 0 评论 -
Servlet.service() for servlet [springServlet] in context with path [] threw exception [Handler proce
Servlet.service() for servlet [springServlet] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config...原创 2018-03-28 11:41:07 · 3842 阅读 · 0 评论