该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 ) P1 O) ^. H9 Q8 i1 v
% m9 [ @2 V; A1 L! HException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
! w- Z1 e" p; s2 \5 T, [org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.gz.struts.action.PlayAction] for bean with name '/playAction' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.gz.struts.action.PlayAction# t1 l7 [3 _( Z. f( V
求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
* h o- L8 h6 j<?xml version="1.0" encoding="UTF-8"?>
3 d/ I/ W$ Q2 r! C! f( u8 G6 O<beans xmlns="http://www.springframework.org/schema/beans"
4 U8 y2 s& p8 W) s xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"7 U* b2 ^8 X4 J4 y/ V
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+ j" B: I3 i* w# J. f9 u7 h" q' K' h
<bean name="/playAction" class="org.gz.struts.action.PlayAction">
3 B# w& f% s3 ]" @& }1 u <property name="playService" ref="playService" />& \( g( x, e6 j0 O Z' N- V
</bean>
. s3 U7 \& Q; ] <bean id="playService"
. j7 _! |9 f" c' W) s. ^ class="org.gz.service.impl.PlayServiceImpl">
$ A. R% N0 m* h; i8 a <property name="playDao" ref="playDao" />
$ d0 J ?- E% d* _8 _ </bean>6 i9 O% t/ c+ r7 n- L# Q$ i' B
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />/ |% g0 f! p* `& K! J" X8 G% r
) d4 a5 x' B' f* h
<bean name="/userAction" class="org.gz.struts.action.UserAction">* E4 j3 X) p; C2 _$ l" A9 o9 |
<property name="userService" ref="userService" />
% `5 @ J) k2 ?, j2 I. l <property name="allTypeService" ref="allTypeService"/>
$ [8 W8 h8 ?, @) }: W! B7 r9 p# _5 Q </bean>
1 K( j+ X4 X) |( Q. |( U+ U2 ~ <bean id="userService"
8 t2 w ?9 g9 ^3 A class="org.gz.service.impl.UserServiceImpl">
4 o- ]& M7 b3 \6 K/ A <property name="userDao" ref="userDao" />
9 \3 b r3 o$ B# W0 w, f </bean>
, x! C A: O3 H* a S7 J <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
1 ?+ z/ u* Z1 T( K
& A: T m0 P1 f! y& x7 r. h <bean name="/typeAction" class="org.gz.struts.action.TypeAction">
* ^+ U% m* M7 N9 F <property name="allTypeService" ref="allTypeService"/>; `! C9 N+ V7 E$ |, g; F
</bean>
4 Z6 `! ]1 G' v <bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
: d c9 e! P+ L <property name="allTypeDao" ref="allTypeDao"/>
* h7 B( `6 X* n0 \ </bean>
8 w% v9 ]0 L& r <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
. o! h* O; `2 t0 s, S
9 p* t& K, V3 h! h. u1 S <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
C1 x' W5 c' S( z' Y <property name="allTypeService" ref="allTypeService"/>- W9 g$ F2 x6 K: L
</bean>
* [* R1 U: d) f: G6 ~7 ^9 K <bean name="/fileAction" class="org.gz.struts.action.FileAction">
5 V3 T4 g2 m8 {+ D; g5 ^ <property name="fileService" ref="fileService"/>
: W U, g, I7 {1 K; G </bean>
+ t& \; X# O$ M <bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
i) \" r1 f& U, g$ J0 `7 I! f <property name="fileDao" ref="fileDao"/>
K; B2 [* z' R8 s: P </bean>
1 h6 p' H1 { r- [& s <bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>
7 |3 g: u5 ^/ K" I. m& g5 @$ f( y" t+ F# d$ m5 |. s% v
<bean name="/newsAction" class="org.gz.struts.action.NewsAction"> {; R0 o3 y7 y% L* E9 Z+ F: d" u" s- i3 ]
<property name="newsService" ref="newsService"/>
9 O; a; r0 s4 R* D) Z <property name="playService" ref="playService"/>1 k) a! L$ h* o6 U- i
</bean>. u! R) n, m, R
<bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
3 W; |: f3 ^/ Z1 h: A3 w6 {3 T$ I <property name="newsDao" ref="newsDao"/>' v$ G m0 |4 a1 h$ W7 y
</bean>
: E6 h8 E! Q& J2 S# ` <bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>
/ U& B. z. C9 P+ g8 y5 S9 C' Y0 A; ~# I3 c# f
<bean name="/registAction" class="org.gz.struts.action.RegistAction">2 c; o. Y& g" t( n
<property name="registService" ref="registService"/>
( L9 }; x0 |) _2 Y/ i8 X/ S& e: ~ <property name="playService" ref="playService"/>* q: V8 ?) _9 C: @; ^
</bean>
7 |8 D2 M- Q- A( H6 [# K b4 P <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">9 K4 {; u& w5 D* z0 P ]5 D& V
<property name="registDao" ref="registDao"/>
6 @. k' P6 F0 r' y' N( ^ c3 t6 i/ r </bean>
% G3 P$ T; D6 K <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>% t+ n. W( ?: ?1 I
</beans>
; u4 a7 t) y/ P9 Z6 F c
* U4 _- }5 y0 B
2 X2 U& s8 ?/ m% Q |
|