2016年1月15日

java.lang.OutOfmemoryError: PermGen Space

摘要: 得出三点结论 一,java.lang.OutOfmemoryError:PermGenSpace报错一种可能是tomcat内存不足,一种可能是jvm内存不足。对于后者,有种可能性是,myeclipse里用的还是自带的jdk。 二,web无法启动,有一种可能是web项目里面不是webroot而是web... 阅读全文

posted @ 2016-01-15 17:59 J·Marcus 阅读(151) 评论(0) 推荐(0)

chosen PersistenceUnitInfo does not specify a provider class name

摘要: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceImpl': Injection of persistence fields failed; nest... 阅读全文

posted @ 2016-01-15 17:56 J·Marcus 阅读(1620) 评论(0) 推荐(0)

javax.persistence.PersistenceException: No Persistence provider for EntityManager named ...

摘要: 控制台下输出信息原因:persistence.xml必须放在src下META-INF里面。若误放在其他路径,就会迷路。 阅读全文

posted @ 2016-01-15 13:34 J·Marcus 阅读(720) 评论(0) 推荐(0)

2016年1月13日

Spring-MVC接收request参数和向页面传值总结

摘要: 接收请求参数值,三种方式:1使用HttpServletRequest获取2使用@RequestParam注解3使用自动封装机制封装成bean对象向页面传值1直接使用HttpServletRequest和Session2使用ModeAndView对象3使用ModelMap参数对象4使用@ModelAt... 阅读全文

posted @ 2016-01-13 15:14 J·Marcus 阅读(422) 评论(0) 推荐(0)

标签简化Spring-MVC配置

摘要: 新填入@RequestMapping标签和@org.springframework.stereotype.Controller标签这样做就是通过标签来简化之前,对HandlerMapping的配置。HandlerMapping的作用也就无非是,接收前端request,再找到指定controller。... 阅读全文

posted @ 2016-01-13 14:47 J·Marcus 阅读(323) 评论(0) 推荐(0)

2016年1月12日

spring-mvc.xml报错cvc-complex-type.2.4.c

摘要: 添加 helloController 时报错:cvc-complex-type.2.4.c:The matching wildcard is strict,but no de... 阅读全文

posted @ 2016-01-12 21:44 J·Marcus 阅读(2774) 评论(0) 推荐(0)

Spring-MVC配置方法

摘要: 什么是spring-mvc 实现了mvc结构的spring模块,spring-mvc模块封装了web开发中的常用功能,简化了web过程。DispatcherServlet处理浏览器发来的请求HandlerMapping将请求转给指定的controllerModelAndView模型,封装业务处理... 阅读全文

posted @ 2016-01-12 18:28 J·Marcus 阅读(336) 评论(0) 推荐(0)

Spring - 基于注解的组件扫描

摘要: 关于Spring的书籍都会花很大篇幅来讲解Spring如何注入各种bean的问题,非常令人头疼,自己在工作中还从来没有用到过。所以就要跳过那些篇章,直接学习基于注解的组件扫描。发现spring2是不支持组件自动扫描的,所以上一篇spring的代码要做改动1重新从myeclipse导入spring3的... 阅读全文

posted @ 2016-01-12 14:53 J·Marcus 阅读(1644) 评论(0) 推荐(0)

Spring - 初始化spring容器

摘要: 2016.01.12学习linux内核的过程中发现变相的提升了自己的工程能力。以前觉得spring这些东西很复杂麻烦。然而,学了linux内核再看这些东西,发现好简单。学习spring首先就要学习自己搭建spring框架。首先测试初始化spring容器:1建立web工程2导包,其实myeclipse... 阅读全文

posted @ 2016-01-12 14:47 J·Marcus 阅读(268) 评论(0) 推荐(0)

Eclipse + Maven创建webapp项目

摘要: 原文地址:http://www.cnblogs.com/candle806/p/3439469.htmlEclipse+Maven创建webapp项目1、开启eclipse,右键new——》other,如下图找到maven project2、选择maven project,显示创建maven项目的窗... 阅读全文

posted @ 2016-01-12 11:54 J·Marcus 阅读(274) 评论(0) 推荐(0)

导航