该用户从未签到
|
本帖最后由 xiaogu 于 2018-12-23 17:30 编辑 9 M% E/ n8 P# n! b* b$ h0 a
+ p$ _. i5 N @ y5 n( K# o
Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]: A' H' Q* h. M7 i0 C% N
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.PlayAction4 E' R/ F6 o& G+ r: [7 v
求帮助这是代码https://pan.baidu.com/s/1KovJpL1Y236-J8Wf4RfbVA配置文件
8 i$ w" P! e* m1 [# o<?xml version="1.0" encoding="UTF-8"?>% X6 C4 t" Y0 y7 |% o9 @6 Q
<beans xmlns="http://www.springframework.org/schema/beans") e' I8 x4 F" v3 \4 [
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ]. D& } {+ q# N/ B+ X
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">1 Y* @, o8 c. @" o7 W- C5 [& f
& u; g; b# @& r8 J: r <bean name="/playAction" class="org.gz.struts.action.PlayAction">
* \1 v* V1 e9 ^5 {# l- E& l <property name="playService" ref="playService" />7 V8 Z7 P l/ Y+ H n; v& g& L
</bean>* t' r/ n& l2 `# k' \
<bean id="playService"
9 W8 A5 l% w$ E/ r8 |" J2 }( Z7 Y class="org.gz.service.impl.PlayServiceImpl">
6 a0 k; @2 L% a# b0 w2 ^8 ` <property name="playDao" ref="playDao" />2 R) p( J/ O$ V" z
</bean>
) F! Q- j( t# { <bean id="playDao" class="org.gz.dao.impl.PlayDaoImpl" />' g' v( j r% B: _. z6 m% X: m
5 i, a0 c1 E) }
<bean name="/userAction" class="org.gz.struts.action.UserAction">
. F: i, @8 x7 w. E0 U6 D# } <property name="userService" ref="userService" />
5 M$ F5 W* s3 P <property name="allTypeService" ref="allTypeService"/>4 `4 e# `9 C9 N" H* w0 a
</bean>- \' k0 x2 X) x% s0 J- y% Q+ \6 a4 g
<bean id="userService"
; w' R; w/ X7 V3 ?2 T class="org.gz.service.impl.UserServiceImpl">
; u. I& o; }2 c <property name="userDao" ref="userDao" />
+ w3 b/ A" @) H7 v </bean>
) q: C) r+ P+ c5 g: H; j <bean id="userDao" class="org.gz.dao.impl.UserDaoImpl" />
' Y' a3 B0 z7 ], G4 F1 U3 C6 ^ b! T
# X, U5 }. Y0 [. I$ z! F) y7 U <bean name="/typeAction" class="org.gz.struts.action.TypeAction">
( @* J. O6 G9 S5 ]# e3 H <property name="allTypeService" ref="allTypeService"/>
) c7 ]6 N5 i# f; z </bean>' j, N" o5 B b* y
<bean id="allTypeService" class="org.gz.service.impl.AllTypeServiceImpl">
9 u: Y& K6 ^& F# v5 H <property name="allTypeDao" ref="allTypeDao"/>
% e$ k, ^0 F6 {$ u- I6 o </bean>
0 N& ^5 j! }( ] <bean id="allTypeDao" class="org.gz.dao.impl.AllTypeDaoImpl"/>1 l8 M9 J: S# n+ `! C& `
, S. }- X$ }. n. j9 A
<bean name="/typeItemAction" class="org.gz.struts.action.TypeItemAction">
) |8 {' m! I7 {. r- q, ^' \/ d1 O <property name="allTypeService" ref="allTypeService"/>/ J6 Z, ]8 L% l1 p6 \9 h% L- t
</bean>
0 y. k+ S. N. I! A" \# l <bean name="/fileAction" class="org.gz.struts.action.FileAction">1 H" |/ z+ b' M
<property name="fileService" ref="fileService"/> Q, a/ T. T6 F
</bean>/ }& c) o$ F: ^7 W$ u
<bean id="fileService" class="org.gz.service.impl.FileServiceImpl">
% Z( ?1 ^* b z2 U2 R- I: p) R3 u; E <property name="fileDao" ref="fileDao"/>
, A! g3 ~! s# C2 B </bean>
, U/ B2 x1 ?; }- Y1 M2 }5 g5 L. T <bean id="fileDao" class="org.gz.dao.impl.FileDaoImpl"/>
2 \* K7 D( C. T9 R$ }3 }
3 {; f5 ]( m" y2 Y <bean name="/newsAction" class="org.gz.struts.action.NewsAction">: I/ |/ I( X6 o; `: p7 U
<property name="newsService" ref="newsService"/>: P" N* l) P+ D- `1 }4 ^
<property name="playService" ref="playService"/>2 o/ x% n0 {2 v3 _6 A( Q
</bean>; m5 E& \6 ]. c: H
<bean id="newsService" class="org.gz.service.impl.NewsServiceImpl">
8 ?. N; M/ w) y1 W4 ` <property name="newsDao" ref="newsDao"/>, S. f7 o8 i, p* G* b' P
</bean>- N+ g% O" \ f# K
<bean id="newsDao" class="org.gz.dao.impl.NewsDaoImpl"/>( M7 m, d- W& g! K1 |
. K9 R7 W+ D8 z4 e( e <bean name="/registAction" class="org.gz.struts.action.RegistAction">$ v* j( L2 M, C% D
<property name="registService" ref="registService"/>- ?& N5 p f. w* w' U
<property name="playService" ref="playService"/>( M/ N- n/ B1 I5 @" F1 M; h
</bean>
8 z' D$ B- Z5 A <bean id="registService" class="org.gz.service.impl.RegistServiceImpl">
& S" x( }' [! ~2 E1 }/ I <property name="registDao" ref="registDao"/>
6 y x* k; \) T" x </bean>
0 ?0 `. Q" O/ i" E* ? <bean id="registDao" class="org.gz.dao.impl.RegistDaoImpl"/>
; q! n4 p4 }' e& i$ P7 y</beans>! Z' v7 _( m$ M% x9 P. N8 K3 S; e3 b& R5 ^
& r/ d9 u1 r+ N* c2 q* A: Z5 G1 R8 t! u, u
|
|