该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑
) R5 l( Z, `6 e# Q& F' q8 D. `1 [6 B; s9 p6 E# H$ r* I- c
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
; p* U2 E0 J7 ?; y0 a5 Horg.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
; |. T) q2 O+ X8 k. O求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
: q; M& {/ q" k8 T' z<?xml version="1.0" encoding="UTF-8"?>
: _+ Q" c9 x/ z6 ~/ n<beans xmlns="http://www.springframework.org/schema/beans"0 w' ?8 Z8 G3 y J/ B2 V& k
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
s/ v& f$ ]- w/ m7 `4 z xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">0 K0 K" m: Z$ k3 k
4 c$ L% M- `0 t% t. I# ` <bean name="/playAction" class="org.gz.struts.action.PlayAction">
6 \* s. E H6 A# F <property name="playService" ref="playService" />
- ?6 b5 h/ H& o# y </bean>! {+ E1 L' w( t! H) [
<bean id="playService"/ F8 B, t1 H y$ @
class="org.gz.service.impl.PlayServiceImpl">
5 P/ t* o9 o$ i) v <property name="playDao" ref="playDao" />
7 o% D1 M! |3 p+ L </bean>( [$ A# |( N' l8 z6 d5 b; z
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
2 F0 J9 T+ p* @- y2 f
! C( Z" }% y2 A$ w; U, o <bean name="/userAction" class="org.gz.struts.action.UserAction">
2 n6 N. m0 K1 t <property name="userService" ref="userService" />4 @6 N( }8 ]" `% g1 L
<property name="allTypeService" ref="allTypeService"/> |* s2 |9 ^% z7 ^
</bean>* D5 ?) x' s, z6 b" Q( [' @+ q6 \
<bean id="userService"
& d# U ]" Z) A+ o# v class="org.gz.service.impl.UserServiceImpl">
8 L- Z Y T/ j% Z" o8 s/ p <property name="userDao" ref="userDao" />. H+ k: E1 x7 D- h$ e) l4 E/ Q4 w
</bean>- O- P, W) U( A3 _' b, e) H
<bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
6 |& t' W) L8 [/ C ' n" i, U n5 x3 G
<bean name="/typeAction" class="org.gz.struts.action.TypeAction">
5 {: A* m0 W6 A <property name="allTypeService" ref="allTypeService"/>
A0 x8 l" F& A( x1 `4 b </bean>0 ]9 T7 a) L s+ f# G9 s
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">* i8 y: k0 H9 H# A4 K8 {( T
<property name="allTypeDao" ref="allTypeDao"/>2 q! F5 l5 {+ J" h$ Z! u' X
</bean>
6 n2 S5 T" T$ k$ ?* \! z <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
1 {6 f y! o1 R% V" x& I& W . y; E) `& M5 O; K. @
<bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
1 a- M; V" z7 r) d/ s7 I1 W6 { <property name="allTypeService" ref="allTypeService"/>
: o& V% l# e" ?( f( _8 _6 s </bean>3 i0 a) e& w2 W& {+ A
<bean name="/fileAction" class="org.gz.struts.action.FileAction">$ d/ y; ]7 |$ ?: m: [
<property name="fileService" ref="fileService"/>9 J! r/ L# M6 ]+ K0 P0 t
</bean>
/ d& k! C$ [, L- ~% O x' y <bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
' [( ~3 M A' ]2 L2 Q) }" e2 w z8 g <property name="fileDao" ref="fileDao"/>4 B6 o& ]: E1 I% ^& E, r
</bean>- d; o6 a0 \$ F& r. A/ U
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>
6 q" R$ Y0 n- Y* b9 U6 p/ g6 t. l2 K/ R/ u
<bean name="/newsAction" class="org.gz.struts.action.NewsAction">( r$ n) D- j- J( I$ k/ X; W& |
<property name="newsService" ref="newsService"/>( j+ n6 z, W; ~$ d
<property name="playService" ref="playService"/>
4 _& `3 j( } e+ ]4 @: j </bean>6 w4 b' V/ ~ u* ]4 B$ b9 Y
<bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">: V$ }! Q$ S: b5 p. c
<property name="newsDao" ref="newsDao"/>, d7 ~# M8 B4 [4 A2 V% i) e
</bean>4 p$ A( r2 x- z* D
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>3 r4 K* Z( L' c/ @( h
+ O% ?* |2 c& g/ l6 Y. j
<bean name="/registAction" class="org.gz.struts.action.RegistAction">
/ E5 S ^" D2 p( \8 E& h <property name="registService" ref="registService"/>
6 J* z+ \# c. U' u( r <property name="playService" ref="playService"/>8 S2 e4 b8 n# |; G& }- A+ Z* P
</bean>. a% ?* J' {3 A- ^- y/ l
<bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
* M: B" m* _) P" u# z9 v; Q <property name="registDao" ref="registDao"/>
# }, y1 Y5 J( q! N1 m </bean>
% R D4 o, p5 p8 m R <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>! A! x# I1 A1 C( m+ F/ v ~) B G% H
</beans>
# j( E, p m9 Y3 r* j* ^8 |
$ D% J+ \! M* ~5 J4 z6 H$ U# m) ?+ w
1 H# `1 a8 P1 U' }" v) H3 q |
|