xiaogu 发表于 2018-12-10 21:34

求助,这个项目在myeclipse吧部署后报错

本帖最后由 xiaogu 于 2018-12-23 17:30 编辑

Exception sending context initialized event to listener instance of class
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class for bean with name '/playAction' defined in class path resource ; nested exception is java.lang.ClassNotFoundException: org.gz.struts.action.PlayAction
求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

        <bean name="/playAction" class="org.gz.struts.action.PlayAction">
                <property name="playService" ref="playService" />
        </bean>
        <bean id="playService"
                class="org.gz.service.impl.PlayServiceImpl">
                <property name="playDao" ref="playDao" />
        </bean>
        <bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />

        <bean name="/userAction" class="org.gz.struts.action.UserAction">
                <property name="userService" ref="userService" />
                <property name="allTypeService" ref="allTypeService"/>
        </bean>
        <bean id="userService"
                class="org.gz.service.impl.UserServiceImpl">
                <property name="userDao" ref="userDao" />
        </bean>
        <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
       
        <bean name="/typeAction" class="org.gz.struts.action.TypeAction">
           <property name="allTypeService" ref="allTypeService"/>
        </bean>
        <bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
           <property name="allTypeDao" ref="allTypeDao"/>
        </bean>
        <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
       
        <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
           <property name="allTypeService" ref="allTypeService"/>
        </bean>
    <bean name="/fileAction" class="org.gz.struts.action.FileAction">
       <property name="fileService" ref="fileService"/>
    </bean>
    <bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
       <property name="fileDao" ref="fileDao"/>
    </bean>
    <bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>

    <bean name="/newsAction" class="org.gz.struts.action.NewsAction">
       <property name="newsService" ref="newsService"/>
       <property name="playService" ref="playService"/>
    </bean>
    <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
       <property name="newsDao" ref="newsDao"/>
    </bean>
    <bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>

    <bean name="/registAction" class="org.gz.struts.action.RegistAction">
       <property name="registService" ref="registService"/>
       <property name="playService" ref="playService"/>
    </bean>
    <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
       <property name="registDao" ref="registDao"/>
    </bean>
    <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>
</beans>


页: [1]
查看完整版本: 求助,这个项目在myeclipse吧部署后报错