spring 3.1 集成 beetl 2.2 报错!
时间: 2016-03-28来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
spring 3.1 集成 beetl 2.2
启动报错:NoUniqueBeanDefinitionException
java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException
配置如下:
spring -beetl.xml
<!-- 第一个GroupTemplate,模板放在Webapp下 -->
<bean name="beetlConfig" class="org.beetl.ext.spring.BeetlGroupUtilConfiguration" init-method="init">
<property name="configFileResource" value="classpath:properties/beetl.properties" />
</bean>
<!-- Beetl视图解析器 -->
<bean name="beetlViewResolver" class="org.beetl.ext.spring.BeetlSpringViewResolver">
<!-- 多视图解析器,需要设置viewNames和order -->
<property name="viewNames">
<list>
<value>*</value>
</list>
</property>
<property name="prefix" value="/WEB-INF/beetl/"/>
<property name="suffix" value=".html" />
<property name="contentType" value="text/html;charset=UTF-8" />
<property name="order" value="0" />
<!-- 多GroupTemplate,需要指定使用的bean -->
<property name="config" ref="beetlConfig" />
</bean>
applicationContext.xml
<!-- beetl 配置文件 -->
<import resource="classpath*:spring/framework/beetl/spring-beetl.xml"/>




详细错误信息:
java.lang.NoClassDefFoundError: org/springframework/beans/factory/NoUniqueBeanDefinitionException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
at java.lang.Class.getDeclaredMethods(Class.java:1855)
错误截图:

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行