该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 8 f' E& i5 _7 w6 [9 i/ ^; L2 i
3 ]' v o+ M6 xException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
/ f' U$ q# y: W8 H4 ^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
# B) U6 Q% z1 {求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件; L" e. {6 K; J- ]
<?xml version="1.0" encoding="UTF-8"?>+ D4 K% c* v9 m, o4 J! T1 J1 R ~
<beans xmlns="http://www.springframework.org/schema/beans"$ G4 Q& V6 Z3 e K
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 \6 n0 o: M( N$ b# O; S xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
$ u. F% _9 ^: |. Z! T& q+ }* i6 z
% l. m& k7 W$ m, |$ A- V1 w <bean name="/playAction" class="org.gz.struts.action.PlayAction">
- n4 X/ X( C7 n <property name="playService" ref="playService" />. G/ x) n' T1 `" j7 S. V1 k
</bean>
3 d D. j6 l( c' ? <bean id="playService"1 t" z& Q# @+ X3 u2 s8 T
class="org.gz.service.impl.PlayServiceImpl">
: O% {* \! c9 B t H9 z <property name="playDao" ref="playDao" />
5 a" S; P( F; F/ `$ h0 q/ a </bean>, U0 f$ r2 v; Z9 e+ z: d1 W
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />; T8 I, p4 @+ p8 n2 B( E: u _7 Q
2 j! W" R( x/ u, D# l" ^
<bean name="/userAction" class="org.gz.struts.action.UserAction">' ?, N' g8 _( n
<property name="userService" ref="userService" />
5 z0 d7 G% U' h* \: W" x4 B <property name="allTypeService" ref="allTypeService"/>& i; y4 e# z, g) j" l9 j
</bean>" v, a0 H$ ~( @
<bean id="userService"* E$ ^- c6 g# ], ]) n8 S
class="org.gz.service.impl.UserServiceImpl">
. e& M2 [% X7 i% J <property name="userDao" ref="userDao" />
, K- z" D( Y9 k7 G; U) Q# j; d </bean>
: \& u2 F C. q+ X <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />" z7 @4 H1 u. W& q2 X% y* O7 B4 h3 {
- M" _2 h! v) @# R, K5 K+ ^ <bean name="/typeAction" class="org.gz.struts.action.TypeAction">
" U1 d3 Q: m8 C% B5 q <property name="allTypeService" ref="allTypeService"/>/ }. K/ `6 `* b$ @, \9 }+ p; i
</bean>! ]; V, r) ?; U- }( s
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
4 z3 M& f5 M$ w3 D; b <property name="allTypeDao" ref="allTypeDao"/>
2 v1 A4 t2 _) S8 r7 \- L' s </bean>+ z$ s6 s& m! n ^
<bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
9 k. Q* d& I: z2 Z" f 0 ^8 J/ s# i; m% o" L* C
<bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">" r& g" V( b& Z6 z- Z3 W$ h' {
<property name="allTypeService" ref="allTypeService"/>
0 V8 G9 s9 ?) q ^7 n </bean>) Q+ B: S8 s" i1 p- O8 G
<bean name="/fileAction" class="org.gz.struts.action.FileAction">
0 W" p0 X' N) l <property name="fileService" ref="fileService"/># g" a9 L& g1 q$ ~/ M9 ?$ u# }/ J! j
</bean>/ S3 E$ M& O3 P$ n, k0 B( V
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
% b( S, _! q1 l; O7 Y. T: L <property name="fileDao" ref="fileDao"/>! N+ L x9 m, _3 Y* @
</bean>0 `1 o4 m$ z, L* a5 [% w
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>! Y, Y" O3 k! i H* g1 X9 O( u+ k
! O. a. |5 r% y3 F0 `7 ` <bean name="/newsAction" class="org.gz.struts.action.NewsAction">- Q+ F7 h$ y8 j; Z! U+ ]0 P
<property name="newsService" ref="newsService"/>% o9 g' R( R# D
<property name="playService" ref="playService"/>
9 ] L7 x/ N& w0 M" t# s </bean>
3 ?' G1 I0 A4 X% L* K <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">% G G/ g4 n( d5 y1 l5 \
<property name="newsDao" ref="newsDao"/>
0 Y4 y" n4 Z/ b </bean>0 v. ?) U" k& N! l2 K
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>* Z6 Z/ Y) V$ V; A
" \% R+ k/ v* W# {4 l
<bean name="/registAction" class="org.gz.struts.action.RegistAction">- j) Y1 i" C7 s9 i6 u; X4 z' d
<property name="registService" ref="registService"/>3 G" z6 D' f3 r; R7 H
<property name="playService" ref="playService"/>/ I9 y7 i7 ^8 G0 j) ~
</bean>: ]& O6 l( M3 v6 {6 g) a+ N! O
<bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
( I" l9 N0 Q, d' ? <property name="registDao" ref="registDao"/>: Y- E. N2 Q, h0 z1 Y, E
</bean>, X8 C* y. [5 X4 r) @2 X; o
<bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>! u& {0 X( K! M2 f( s
</beans>
& ^( L1 K# @: i
' w8 T& @, Q7 U9 \7 _6 ?+ I& _* x- i$ ~) E8 A6 k
|
|