该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 / Y5 B1 ~8 \! |
( A% i1 G: P# W l& @' v. IException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]0 A% A5 }! z* [* h
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
+ J# u; V7 {& I1 @( ~, ?9 H求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件6 {5 B6 F" I# p4 N
<?xml version="1.0" encoding="UTF-8"?>/ s0 ]8 W2 x2 E1 h$ H- y) X8 d
<beans xmlns="http://www.springframework.org/schema/beans". k1 w" C+ F4 J
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 |) H. X) {& g xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
1 m5 c- o9 G' Q: S1 {& Q; p" O" b0 m% c h8 A9 G1 b7 u, k6 W s
<bean name="/playAction" class="org.gz.struts.action.PlayAction">3 O. v9 j9 B% ?: r3 T
<property name="playService" ref="playService" />
6 G7 X' _: m, d: [: U5 A' ] </bean>: }3 U- C; D/ R; J. @- n/ H
<bean id="playService"
+ e1 N, M* {, t) F3 u class="org.gz.service.impl.PlayServiceImpl">
" r& Y4 B# v* a5 V4 M6 u: m <property name="playDao" ref="playDao" />2 R; e) h, z# h( q0 B( }7 g( y
</bean>( S$ v& o; X8 x- A5 K
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
* m: Z1 \$ `4 C; a
5 t y; T, M1 | <bean name="/userAction" class="org.gz.struts.action.UserAction">" T4 E6 n4 f3 r
<property name="userService" ref="userService" /># I% o$ Q. w0 e" a
<property name="allTypeService" ref="allTypeService"/>
# B) U: r' f8 C9 `4 K </bean>5 F4 c; j1 @9 e# Z# w# c# C
<bean id="userService"
9 |) K% i5 u# X, C' Q( K; i class="org.gz.service.impl.UserServiceImpl">
2 I! r7 t( t/ v W <property name="userDao" ref="userDao" />; _, T! x+ S& `3 }7 k9 r
</bean>8 X8 s: y4 p: F; @
<bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" /> x3 \' Q# Z* }: }
+ {+ o+ n; q; s! c
<bean name="/typeAction" class="org.gz.struts.action.TypeAction">
1 ]+ g# n. P$ Z <property name="allTypeService" ref="allTypeService"/>
8 A" V, M4 Z% @ Z </bean>, o! K( o o2 d! l) u3 x
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
5 ^3 c4 x4 g3 t/ o <property name="allTypeDao" ref="allTypeDao"/>
8 Q4 u" R2 G' }; M5 b# B/ J& Y. X7 R) P </bean>* e& y& g6 j; g! b3 J
<bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>
: G% I( r6 D% ]1 R2 X
: d6 k1 N' b$ D- [ <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">& S. H) z8 f, Q9 v0 l5 k
<property name="allTypeService" ref="allTypeService"/>
% G0 {; w- x% [# v, H/ E </bean>! m+ ^( s# d; b- f6 G6 T# X9 S. E
<bean name="/fileAction" class="org.gz.struts.action.FileAction">
5 z+ @* u7 c* z& C <property name="fileService" ref="fileService"/>
# k; m _( v u% Z! ?9 K8 ~( | </bean>
1 T. ^3 J( H$ r7 C+ h. I <bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
8 W) J) C$ p% q1 x( W <property name="fileDao" ref="fileDao"/>
, D7 r6 y% y u" a. l& e </bean>9 }' ]% X: @5 T0 B; \
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>* W, R3 {1 g7 N: r; e) J7 A
% x" T" C8 Y+ a- k5 D <bean name="/newsAction" class="org.gz.struts.action.NewsAction">
, p! q9 l9 |* b# S5 E1 }5 F <property name="newsService" ref="newsService"/>6 M% A3 W7 w$ W& S1 y& ]2 v
<property name="playService" ref="playService"/>
( J6 a3 \/ `" d" n# D; C </bean>
0 \% t0 h" u8 w+ i <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">6 C: r) |* a s9 R: `) P) D
<property name="newsDao" ref="newsDao"/>) k' D$ N) M) j0 H! N
</bean>3 d* t- |; z: I& G$ @
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>
' n- p z/ c% |8 ~5 Z/ \
9 f' S* M; c5 P' u2 s/ A5 v <bean name="/registAction" class="org.gz.struts.action.RegistAction">
8 e' }" F. f4 {5 i <property name="registService" ref="registService"/>
7 {$ ^5 o6 c0 P Q Q <property name="playService" ref="playService"/>
0 [9 b* u" k) `0 X- Z' n: ~* ] </bean>& l4 ]4 v4 F$ }7 t* G1 X4 S
<bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
$ w) J% C/ G( }9 E" d& q9 o/ G <property name="registDao" ref="registDao"/>
) ` g4 E1 G+ o </bean>6 g% w8 i ?3 v, r: C
<bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>4 B& i7 K, n) ?
</beans>
; U) ~* H5 H4 k' K p) @# q# D0 X' d, G& N" u
' o! c2 a& [) u Z8 B |
|