|
该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑
3 e* s9 V- c/ S9 a8 p& x* p4 ^3 r8 _2 m) W
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]( [4 g- |8 q* o6 F9 x( v: W% w
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
- u; b: |) u' j' g& c# O1 S0 R求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
6 U3 [' G' S0 i# ?2 e8 K- j2 b<?xml version="1.0" encoding="UTF-8"?>& `# @4 Y# [9 L5 q6 P! e3 h$ T4 t
<beans xmlns="http://www.springframework.org/schema/beans"
. m, O$ m- E r xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
u Q& `1 N2 d" [: Q* n4 X xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">3 b ~1 H0 u! b. i+ z. @4 c! v: D
/ m: }6 \5 S) e1 C <bean name="/playAction" class="org.gz.struts.action.PlayAction">
: [9 D! Q) Y! V# |& P L1 ] <property name="playService" ref="playService" />
* q7 @' @! l& ?/ T9 H1 L$ a( K </bean>; y+ W9 W) {% r. ?% b$ r
<bean id="playService") [+ ?2 V; X- j6 e/ d4 r
class="org.gz.service.impl.PlayServiceImpl">
8 q/ x' n% b' S/ w$ [0 y1 ]4 J2 X7 D <property name="playDao" ref="playDao" />
6 P3 b# C/ g' S* A </bean>% N" p. ` N5 e/ c9 l; `
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
1 F2 _: R: u/ f5 r# b$ L
, k7 R7 c) x! p <bean name="/userAction" class="org.gz.struts.action.UserAction">
( ] F( ~* Y6 R" o7 b <property name="userService" ref="userService" />
1 ~: C5 t% Y, y. Z( _5 C# s1 E <property name="allTypeService" ref="allTypeService"/># h) `. C% I# c+ \, S
</bean>
; u& M) B4 k \3 Q9 [ <bean id="userService"
' Z- ^9 F2 h3 B. w9 z class="org.gz.service.impl.UserServiceImpl">
+ M7 C) F s, B v5 z <property name="userDao" ref="userDao" />
. M8 u7 g$ _- } </bean>7 k) u5 z$ e4 }
<bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
( x7 [0 ?# ?3 M & F& Y- }' {1 o
<bean name="/typeAction" class="org.gz.struts.action.TypeAction">0 I7 }3 r1 Q; K
<property name="allTypeService" ref="allTypeService"/>9 X, o7 d" g! Q
</bean>
8 k L! @0 v) d5 p$ I# I* W <bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
- H* q" _! |! h& t <property name="allTypeDao" ref="allTypeDao"/>5 g2 \ R0 F' w$ V
</bean>
' m0 n$ i! ] S/ x <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>! Z* m" f% {$ _+ o
+ l' E( I0 M& i0 V) [ <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction"># r6 M& A: M& w* i! d5 P
<property name="allTypeService" ref="allTypeService"/>
/ y7 n7 Z" U0 O5 e9 M+ G </bean>
2 n7 d8 k9 x1 H3 ^# O( o3 c; C <bean name="/fileAction" class="org.gz.struts.action.FileAction">
" j/ w! X4 h$ Z& E1 N5 g( | <property name="fileService" ref="fileService"/>9 U0 M# `+ |3 U( g
</bean>( v& K1 O8 z1 z$ v( E
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">0 f, y ^7 V; t2 l, ~: l! G
<property name="fileDao" ref="fileDao"/>! }3 J1 E# v- v! U0 U& ~
</bean> ^4 g, j- G- N' H& h, q& k
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/> L; j) W0 x2 {# v
4 G* M. g) \: N" C
<bean name="/newsAction" class="org.gz.struts.action.NewsAction"> _' D/ R" x: F9 O9 d* E: Q8 I
<property name="newsService" ref="newsService"/>
' Q* D: `% s: g$ G y# [, [9 }1 @ <property name="playService" ref="playService"/>! T; m* y8 \8 A6 R# G( Q
</bean># }1 q3 v8 N8 c" O' o9 Y5 ]
<bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">+ _1 R% ~" ^% y, |9 T3 Y: ]% _* K7 A
<property name="newsDao" ref="newsDao"/>) @4 I/ \. ~3 L; }9 ~4 r( D
</bean>
9 z1 U5 j. S) |; x1 _7 b- P <bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>) G) J7 r8 j1 e$ k7 M0 ]
/ t5 R2 B' e( u) A" z1 R% \3 d
<bean name="/registAction" class="org.gz.struts.action.RegistAction">
: T1 ~3 ?* z& V% H8 M- r& P4 x <property name="registService" ref="registService"/># B& B1 ]; I9 D2 V
<property name="playService" ref="playService"/>2 ?8 N& s# k, g+ P& d
</bean>' J3 l6 k% J9 U- Z3 h
<bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
Q+ |+ J$ c" G. N" b <property name="registDao" ref="registDao"/>
! c ~- }) B& O$ [; D </bean>+ ?' D! \3 } i9 f. ~0 A7 d" S
<bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>
5 l, P0 @8 t9 T; e% ^</beans>
8 s4 a7 n+ |2 z4 Y2 b8 y% w
6 \( X& v+ r8 E% Z# ^' Y, _* z. `, |2 I9 p* E$ O
|
|