0 0

springMVC环境搭建5

    最近我自己在Eclipse下面中搭建springMVC.但是每次已启动tomcat都会报加载springMVC的配置文件出的错,而且好像是
<context:component-scan base-package="com.xShop.ebiz.action"></context:component-scan>
扫描spring的bean出现的问题,希望大家帮我解决一下问题,异常提示信息如下:
    java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.asm.ClassReader.<init>(Unknown Source)
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>
    希望大家能够帮我看一下问题
2014年8月13日 01:45

2个答案 按时间排序 按投票排序

0 0

看看是不是因为scan的包没有包括所有依赖spring注解的类

2014年8月13日 11:09
0 0

启动没遇到啥问题就是改了下这个:
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"></property>
    <property name="prefix" value="/WEB-INF/view/"></property>
    <property name="suffix" value=".jsp"></property>
</bean>

2014年8月13日 10:19

相关推荐

Global site tag (gtag.js) - Google Analytics