该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 2 J8 R5 c+ e( t' v2 M# s6 ^, F
6 v; y& w; ^3 I) Y0 k( M/ ]
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]' m6 Y4 x; u( ~5 f& @
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
- H9 v1 O* m& b求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
- |- K- Y) Q/ R<?xml version="1.0" encoding="UTF-8"?>
8 D! [. a5 i: h9 A1 r8 ?<beans xmlns="http://www.springframework.org/schema/beans"+ |3 f+ t# {4 ~- v" f
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"" P% _9 p, R. G6 ] u8 y
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">& I( R7 N( I% Q
$ H: d# q( c4 A! l P' J
<bean name="/playAction" class="org.gz.struts.action.PlayAction">
" m# }5 @: u* ? [$ T <property name="playService" ref="playService" />8 {: s6 Y" H u' o% {! I2 \
</bean>/ J' \0 [( X- Y/ Y: r' D
<bean id="playService"7 N) }4 t- V' a- G
class="org.gz.service.impl.PlayServiceImpl">9 E' y% L' D$ v' w4 @
<property name="playDao" ref="playDao" />! N$ Q% O; l# X( G1 B
</bean>. |0 u( ^) p. G, R: s2 l6 R) F
<bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
w1 J* S' r- K: I" q7 T# z0 @. C/ `, i5 N, @
<bean name="/userAction" class="org.gz.struts.action.UserAction">
" E0 H" _8 z- G: u. s. F9 E <property name="userService" ref="userService" />
8 c" m( f* z9 D+ c `2 ~8 [ <property name="allTypeService" ref="allTypeService"/>
. M9 o% I. {+ w- ~2 k) k# v J# Z </bean>6 ?8 Q3 r4 N6 N4 ~: E% n3 {2 F
<bean id="userService"
3 F; d* g& a1 h7 D9 n/ v* k8 U* X class="org.gz.service.impl.UserServiceImpl">( ?: t S- @" A8 g9 v
<property name="userDao" ref="userDao" />4 B; ^9 Z& [+ l; R% K
</bean>
5 {$ y8 w3 G5 _3 F6 F2 e( n <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
3 ~; }8 [+ I: L8 x1 Q2 L & k* s& I6 y# x4 `2 S6 v
<bean name="/typeAction" class="org.gz.struts.action.TypeAction">
! |: I3 d5 p" j2 m% {, s <property name="allTypeService" ref="allTypeService"/>) |# u, n6 f% V4 x2 ]
</bean>
Y4 `- L4 {/ S <bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">0 H: U& r$ p; i! D; Q0 k
<property name="allTypeDao" ref="allTypeDao"/>2 e1 \! d: l# q R- Y, O+ u
</bean>9 J2 B4 `8 t3 c1 S) a% a+ G
<bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>" v, C- W0 `9 q5 Z' I$ Y
) {2 U) }' O" H3 i/ Z <bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
3 r, q% g: _; M) F+ L <property name="allTypeService" ref="allTypeService"/>6 C+ v; g9 U w
</bean>2 E% Y4 G1 g9 c" c9 `
<bean name="/fileAction" class="org.gz.struts.action.FileAction">
5 c; f [1 @: @5 |4 j <property name="fileService" ref="fileService"/>. {& r9 ^9 K% @! p1 c! u
</bean>9 K8 x# g- g. t" i+ R& e0 v, |& b! @
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">: \# F) i% k. _* U9 M2 o
<property name="fileDao" ref="fileDao"/>3 u# F( }! U& X* Y' ~/ t
</bean>1 D# t- T) o0 L
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>
/ M: Q0 |1 L( f* b, `8 W% ?
; J( E0 }% r7 j& r9 s <bean name="/newsAction" class="org.gz.struts.action.NewsAction">& p* ?& T j' O0 H. V$ q. N0 D( f3 ]
<property name="newsService" ref="newsService"/>. `, U4 X2 b+ W8 _" s8 A' q4 ^
<property name="playService" ref="playService"/>
( \3 D% R$ g& X3 V+ [* i </bean>
* ~# C6 C3 f! m; t <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">5 y0 Q- F: p- f) l: ^1 W' [, w
<property name="newsDao" ref="newsDao"/>$ y$ w( u) F6 U. f4 A
</bean>1 g+ i" j% ^" R7 l2 @- p9 K
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>
1 H% V! P N6 \# L$ K+ i
4 _& N- n* e# e3 r <bean name="/registAction" class="org.gz.struts.action.RegistAction">
3 W/ v; l% e& H; u, G5 w: K, r$ L <property name="registService" ref="registService"/>
: k$ F0 i! D# H <property name="playService" ref="playService"/>
- J$ h3 ~* I/ F8 K% V2 @8 S; e </bean>* l I/ n; z* Q D) r) v# x4 ?
<bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
/ }% a% n, m- X5 H <property name="registDao" ref="registDao"/>
; g; ]+ \! \$ L- }2 C </bean>
6 m8 N M. T: P: i; d8 | <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>$ T( b9 a. l5 ~% H0 A. T( M6 |
</beans>
- s. }1 k2 d" G* \0 A: E
1 t ?' `+ Q3 v9 M8 f3 K1 f' H- R0 u$ s( E! D, S! s0 i, d0 F
|
|