关于springmvc+freemarker问题的整理
2017-07-22 13:38
232 查看
22-Jul-2017 13:29:47.712 警告 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer]
for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]:
problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
22-Jul-2017 13:29:47.713 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException:
Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: problem with class file or dependent class; nested exception
is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]:
problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
只要添加相应的spring-context-support jar包即可。maven项目下添加:
Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer]
for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]:
problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
22-Jul-2017 13:29:47.713 严重 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.servlet.DispatcherServlet.initServletBean Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException:
Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: problem with class file or dependent class; nested exception
is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer] for bean with name 'freeMarkerConfigurer' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]:
problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/ui/freemarker/FreeMarkerConfigurationFactory
只要添加相应的spring-context-support jar包即可。maven项目下添加:
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>4.1.6.RELEASE</version>
相关文章推荐
- 关于shiro+springMVC整合使用的问题
- 关于maven+springMVC+mybatis搭建的web项目问题
- Spring---Web MVC关于前台传值转换问题
- spring mvc freemarker session中值丢失问题
- 关于hibernate+Springle+springMVC配置问题
- Spring+SpringMvc+MyBatis(Hibernate) 中关于时间格式的问题总结
- Javaweb-------mybatis+springmvc关于实体类使用注解的一个问题
- Web开发中遇到关于spring注入的问题(尚未整理 仅供自己参考)
- shiro +springmvc+freemarker session问题处理 shiro无法记录登陆前页面问题
- Freemarker SpringMVC 前台无法使用session;request等对象问题
- 关于spring-mvc中使用ajax调用后台接口出现400 bad request的问题解决方案
- 关于IDEA中maven整合mybatis+spring+springMVC项目中mapper文件找不到问题的解决方案(org.apache.ibatis.binding.BindingExcepti
- 关于springMVC+poi上传Excel文件问题解决
- springmvc + freemarker 解决表单提交、页面显示乱码 的问题
- 关于转载Spring 的MVC I18N-国际化相关配置出现的问题
- 关于spring-mvc请求路径的问题
- maven 多module时测试springmvc+freemarker的问题总结
- SpringMVC+MyBaties关于上传(跟新)图片的问题
- 关于SpringMVC*.xml配置文件加载问题
- springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决