该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 ' Z2 L- D9 D0 W: G3 U' g. M
3 v0 L2 F' u0 i" O; H' @) u8 rException sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
' \; Q5 V+ p0 @; Porg.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
* o- i! Q( t; J ]- P8 Y6 c+ `6 k7 s求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件! y3 g2 X- u9 V
<?xml version="1.0" encoding="UTF-8"?> v) X# S7 S4 N6 n* K/ V9 P/ i
<beans xmlns="http://www.springframework.org/schema/beans"# l2 d2 f0 M9 k$ L
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"$ o5 }0 W2 x& S0 n$ c7 G
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">+ G/ b9 N6 ]7 o! h
) w% y9 J( ~% Z) Q5 U I <bean name="/playAction" class="org.gz.struts.action.PlayAction">4 |: V. |/ ~( w: u4 m
<property name="playService" ref="playService" />; M* [! [( f& O3 e
</bean>
6 Y" P/ c- j8 [7 D <bean id="playService"' s5 J. W0 H" _% O+ A* A0 u
class="org.gz.service.impl.PlayServiceImpl">
2 P7 S$ @4 F- S <property name="playDao" ref="playDao" />
# V: J# o* e2 }" d3 v& x5 p </bean>
0 c( j9 S# |& T" G <bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />
, {& A5 v+ V+ m8 k% A) F( y9 z6 x! W' Z/ n9 F
<bean name="/userAction" class="org.gz.struts.action.UserAction">9 x. D3 F; `) Y1 a# f" m
<property name="userService" ref="userService" />. n8 D3 x7 _4 {
<property name="allTypeService" ref="allTypeService"/>
" R4 u1 T }, D$ y$ M0 S! V </bean># l; X/ n* Y% z: I2 T4 m
<bean id="userService"
0 ^. n/ j4 T+ \9 e5 m class="org.gz.service.impl.UserServiceImpl">$ v, m4 V: u- j
<property name="userDao" ref="userDao" />
$ B) G: ]& [' S" |4 J2 X </bean>
# C4 e4 r, v# H# n3 I <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
, K, R% ? g. m/ V# S7 z: j
5 R/ h1 {4 N& a5 q5 {4 x5 u7 y <bean name="/typeAction" class="org.gz.struts.action.TypeAction">4 a/ K# F4 g+ q1 f' O% a" |
<property name="allTypeService" ref="allTypeService"/>( \; V2 U4 w5 w7 T0 r9 Y) {$ e |
</bean>7 L( m/ B8 c8 ]
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">$ J/ c3 I9 [ j, |/ m; \( s
<property name="allTypeDao" ref="allTypeDao"/>. h' S; b1 h; G- G S
</bean>
' C8 h/ x P: |7 Q' ^ <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>. e1 l7 H) y+ k" ]1 c6 U' w9 a( H
, p; q4 F% b, F, z9 m& m
<bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">3 e: e1 z' n4 ~+ Y9 a6 B
<property name="allTypeService" ref="allTypeService"/>: z4 q1 p# i4 |" b, t
</bean>- R' f: s: \8 v
<bean name="/fileAction" class="org.gz.struts.action.FileAction">
3 o% N3 G0 y4 S <property name="fileService" ref="fileService"/>
/ T' [& n$ g" D' F6 O, i, S </bean>) S, V3 H; g% s# v9 l* p
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">$ _6 n; {8 x7 d" l
<property name="fileDao" ref="fileDao"/>
3 ]& {6 v2 a! R- b" p </bean>1 D% w! _4 h0 ?2 ]1 n- W8 }
<bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>1 |5 I9 b+ e/ j! M7 G; T7 p' L J3 d- S
/ ~5 c& w# f( B9 m/ n+ ] <bean name="/newsAction" class="org.gz.struts.action.NewsAction">0 I+ D/ ]( c, I
<property name="newsService" ref="newsService"/>5 O7 \5 Z2 T: M1 C W' ^
<property name="playService" ref="playService"/>! @ q1 j7 y9 i" A6 ^ t
</bean>
, t$ C8 ~6 K' |* Z <bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
0 w. s. Y) d2 h: r( i8 V9 S9 F* O <property name="newsDao" ref="newsDao"/>% g: S" s% j- ]. X! {+ w s
</bean>
2 a1 m! Z' ^9 H9 ^, L5 n <bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>
( N& R9 {, F5 V/ J0 H( w2 x4 q$ Y$ y) v9 g! ^6 @4 p* g/ u
<bean name="/registAction" class="org.gz.struts.action.RegistAction">
# R" Q/ r% k" U) U$ `* H' u <property name="registService" ref="registService"/>
+ ~/ @( f4 S, G% [4 @ <property name="playService" ref="playService"/>
, e; z% M/ b! {; ] </bean>
3 ?0 M8 k; [3 T3 p, G <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
2 q8 @! d5 w+ d2 j- ~+ W <property name="registDao" ref="registDao"/>
3 Q* S. H# E' j! x: H </bean>- f% P& f8 R( a# u; O+ b* u
<bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>0 B4 c( [: F* L6 F# [& s; }
</beans>
2 N* I9 Q. t' D3 L+ F# `# \/ g: E* O9 d2 J# v9 W
; Q7 b5 h/ z5 |
|
|