该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑
3 c3 E! B7 o& F
+ h+ i- H* ]/ V$ bException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]+ R. x; `1 j* K( Y' U a2 p# H5 v2 F
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.PlayAction1 P, J6 h, X( y6 I
求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
, M$ g! w! c5 f/ N2 a# Y<?xml version="1.0" encoding="UTF-8"?>
6 }8 p5 L. m4 l; C' p0 i<beans xmlns="http://www.springframework.org/schema/beans"
! b9 K! h. x S# \/ z6 Q' l xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"" F# {7 y7 i! Z; ?$ V: k, i t
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
0 k0 F. C5 S9 _% D# A6 M8 z) ]. ^& `
<bean name="/playAction" class="org.gz.struts.action.PlayAction">+ T1 c) K6 n! Z
<property name="playService" ref="playService" />( c% @0 s$ t Q
</bean>
3 S" y# m7 W- b <bean id="playService"1 B- F2 f+ I/ a7 W5 E6 e
class="org.gz.service.impl.PlayServiceImpl">$ R9 P6 H5 R' Q) n: w) H
<property name="playDao" ref="playDao" />
0 u- D+ |" p/ j# a6 n; F. j3 a </bean>' N4 w1 ]- @! Q6 z: W% Y+ _9 H
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />( t) ~4 }9 U0 G6 [
t2 l' ]2 X5 p% {4 a Q; ~0 e <bean name="/userAction" class="org.gz.struts.action.UserAction">9 c2 B" q" Z7 j2 e1 g
<property name="userService" ref="userService" />
& `+ t8 I* F! J: s <property name="allTypeService" ref="allTypeService"/>
2 w2 f+ R6 [. R0 i5 b </bean>) ]+ s! H! k! t1 ^* @4 k7 R
<bean id="userService"! N: }' h4 v2 m9 P2 R
class="org.gz.service.impl.UserServiceImpl"> e7 A( F& E- K( h& S
<property name="userDao" ref="userDao" />4 Y8 ]6 q3 P v) d8 I9 c. l
</bean># ^% [ \& x' n% Q. N
<bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
1 |' N* E$ m/ A, d9 N0 [. ?
8 l2 U! y+ y* N/ d8 i* {: c <bean name="/typeAction" class="org.gz.struts.action.TypeAction">
' W! I3 b4 S! n; y <property name="allTypeService" ref="allTypeService"/>( U2 s: R! f* d. v
</bean>. n8 `2 ~6 U: b0 u7 Y; B
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
V! v* m+ M: K6 z <property name="allTypeDao" ref="allTypeDao"/>
" }1 r Q3 z% G- k- M+ }0 _ </bean>
$ s# G3 O! e7 A6 F; _ <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
. Q8 i# x2 k1 F/ N1 o: o! z- v
( y8 u) [" y8 G2 \9 h <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
+ g/ v4 n; d0 D, z! F, k9 x7 g9 y6 S <property name="allTypeService" ref="allTypeService"/>
, x4 J. a1 e4 p$ Q y </bean>
! i% s7 n. I. c <bean name="/fileAction" class="org.gz.struts.action.FileAction">
! b r: I; d; o$ ` <property name="fileService" ref="fileService"/>
4 J, ? r' C; x' e </bean>9 p8 s% ^. A1 [" g: K y
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">* J9 C" y5 ^- p! E" k3 ?/ {; M& n% `
<property name="fileDao" ref="fileDao"/>
$ i# P& I4 W( H+ t2 ~9 R+ s) f3 q1 ? </bean>+ C5 C q' Z* r/ X: }. \
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>9 D( L% V& Y4 }+ O# i
Z+ h' {4 N& t7 |. S: O
<bean name="/newsAction" class="org.gz.struts.action.NewsAction">; t$ O. k& _7 \* o0 {8 T; r
<property name="newsService" ref="newsService"/>
3 n. h6 Z; s$ A9 u) ? <property name="playService" ref="playService"/>
' u9 p- a7 |# ~8 B( O; H6 o </bean>
: A6 l; Z& `2 x% [9 W7 n <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
/ k' K- S, e' d# i0 F- Q <property name="newsDao" ref="newsDao"/>% N0 X( `& h: c! A3 l
</bean>
& L- O' O' n9 @; S9 K <bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>2 X) B7 J; L$ L9 E8 ^+ j
4 B: k0 w# }+ `3 ]8 K <bean name="/registAction" class="org.gz.struts.action.RegistAction">
) n& j1 L# W: w2 h <property name="registService" ref="registService"/>, I$ y" b' M% J, |
<property name="playService" ref="playService"/>' N4 I u3 I( W/ R9 S( X
</bean>
4 z. K8 |* m& `) |4 i! s! P1 L <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
+ u" [3 _2 l: f9 y <property name="registDao" ref="registDao"/>
+ |7 c& {+ m9 r% W7 L3 T% s8 B </bean>
U8 s6 W, w6 J! f$ K <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>
; I' I+ g0 ~* {; p% A6 s: S7 C* O</beans>" w3 r w5 k( ~- y2 u$ F
: H7 q- A% v( `2 O! G
" U2 y& R6 z; q! f1 C3 |
|
|