该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 : f# d: ]# E5 n* s7 W
2 p9 R8 ^/ ?2 i/ ^ G* g W. yException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]& R1 e) `- V! g
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- S# N$ e* ~- E! a. K5 Q, E9 t
求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
, a# J( D% V; o8 H% }<?xml version="1.0" encoding="UTF-8"?>* e7 ]0 f9 m, }8 N" F
<beans xmlns="http://www.springframework.org/schema/beans"
% h1 J( k1 _8 I9 ^ S j/ X; Q! u xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
! D9 X- x4 X, o. f3 W* E0 U xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">$ K* M$ e* C. t/ [; T) Q4 l2 O
p j1 G1 K2 W- P3 l% j
<bean name="/playAction" class="org.gz.struts.action.PlayAction">
% t Z; m) d" c& }! c+ a p <property name="playService" ref="playService" />: J7 _4 D& }# ~# o- \7 X5 q/ l
</bean>
) [* i5 e9 k5 L <bean id="playService"/ H @# |( E1 s: I1 ?8 |7 R: u8 N
class="org.gz.service.impl.PlayServiceImpl">. m; C& r9 X2 H3 h1 d$ w, z3 i: a
<property name="playDao" ref="playDao" />
/ c, {" Z7 f+ E7 y. q; g `, @- {7 A/ ^ </bean>( y @# V# b- G' h0 k0 I% e
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
( ~- D. V6 `4 W! c; k6 R# B* ^# f$ q3 F, } i9 x' j& V0 n' G
<bean name="/userAction" class="org.gz.struts.action.UserAction">* _7 e/ ]9 w7 B& ] D7 `/ X1 w
<property name="userService" ref="userService" />
, r* l0 T7 |8 |* v <property name="allTypeService" ref="allTypeService"/>. u& `' o2 H- [: J/ [2 M
</bean>2 p5 [8 P+ O. h5 x+ g6 X
<bean id="userService"
9 @$ k6 h; X3 G class="org.gz.service.impl.UserServiceImpl">
, t# s! e, J7 h <property name="userDao" ref="userDao" />9 {3 m1 u9 B2 b" }" f- @3 i
</bean># @( H% L# Z. d+ D) p& J1 q
<bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
% o) r% p: v; d/ @
1 k% a2 M8 p c- {- G <bean name="/typeAction" class="org.gz.struts.action.TypeAction">. x, J/ V3 y$ y8 i) n; I9 T; a
<property name="allTypeService" ref="allTypeService"/>9 _5 x$ z. y' W1 z! M% `; P3 V
</bean>$ D- d6 X: l% G8 L
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
8 ] y' T: C) y* M/ h( R. l <property name="allTypeDao" ref="allTypeDao"/>
( B. n b1 U# z </bean>( u J1 q. Z H' a- A" J" Z
<bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/> ?8 U0 B7 k8 u) {; R3 [
; U4 i7 i1 A4 P- z4 g <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
- \: n5 Z- y( t& D+ c8 p <property name="allTypeService" ref="allTypeService"/>" x. [* h. F2 J5 b0 v- P( l
</bean>
: p l- w" F8 s& P* E <bean name="/fileAction" class="org.gz.struts.action.FileAction">. M5 z3 j7 U% H7 u/ E- E: T
<property name="fileService" ref="fileService"/>( b2 @1 ]" {& P! M/ E
</bean>
! N" t! C* n4 L: z$ l5 I; R <bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
/ a; b6 d1 f7 i <property name="fileDao" ref="fileDao"/>
6 G" r6 i" }) W6 U$ p </bean>
. U. a" _2 u" ? <bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>$ q `1 Y, \3 E; W" D+ S
0 o! X4 N) {" f! K( o* r
<bean name="/newsAction" class="org.gz.struts.action.NewsAction">5 [* d# Q! t+ }9 ]& ?( o
<property name="newsService" ref="newsService"/>
, O- X2 T5 B2 \- h. g$ ` <property name="playService" ref="playService"/>6 E6 F/ d( g+ D8 ]4 c2 ~3 M2 R
</bean>
% @- \' v/ k$ A <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
6 `! |, }- H: O4 s* U5 m <property name="newsDao" ref="newsDao"/>
0 w& A9 p3 F0 z6 E </bean>: T* e( ?8 g" }& y: _6 N
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>
9 I Q. s+ R) |' H5 I6 N' H1 F, m' X$ [2 v
<bean name="/registAction" class="org.gz.struts.action.RegistAction">
( [' A$ S' k @ U <property name="registService" ref="registService"/>8 q: D1 j4 L- @
<property name="playService" ref="playService"/>& [4 b% D, }( B+ A
</bean>
6 Q2 D9 G0 j6 B; b* Q* A <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
# [, S: g* G5 [5 Q1 S" Q% {2 `$ y( v <property name="registDao" ref="registDao"/>8 N! Q& J$ g* ?' W2 }) X; h6 c
</bean>
# G4 l; f9 S( g5 e* D <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>& J0 B7 y1 W, O, x( a. i
</beans>4 `; X' z- \6 a* y; j9 C4 E
/ p; U U, {' D4 t' O* V) v
% T, O. y' t. z* @6 r3 @; m. c |
|