文档介绍:: .
myeclipse框架搭建步骤
Myeclipse ssh框架搭建步骤
1项目创建
L 1创建w建项目
1. 2添加jar包到lib目录下
由于直接使用myeclipse添加ssh特性导致jar包冲突,因此事先把jar包添 加到创建的项目的webroot下的web-inf文件夹的lib目录下
,」SSH-LoginDemo
四src
» & JRE System Library [Sun JDK ^13
0 解 Java EE 6 Libraries
0 Bi Web App Libraries
/ & Web Root
t> 6 META-INF
,& WEB-INF
」巨叫
a antlr-
&
a__ asm-
> aspect)
添加完后,这些jar包自动添加到classpath
2 添加 spring
2. 1添加spring特性
O "d" : W的ie WoAb^cS
Q Sew fa MyfcCpx 5 W^dcw» H<4p
一■ 阴■ ■■ / 9、9 - if »S • KG af • 书▼Q,9「Q・由 G・
•二行卜」3式 ④»ft ・皿乡B ■
0W, Nz
Open Ty|MM«rM<hy 9»c*k
M
c-
a・c
, ■
X
QuaiX 2.
Pm
C*Me
OMe
Usid X Sotrc. Hcfactsr
4
o d
Ifvpevt..
Eypcrt.
C tow ►eject 3・Y«»Ya・"*o,
63沏仅>,匕*j.
ReM
D*U^A«
T26
CowW* lOCAT
n
** O** ** Ur*o**<
Aid «rd M.«mo*v Nn» Modut Aid Ard C«pCi«vwrK.
Md
7d 5tnt. CapWOw^
Ajd Mrn;
3R«C»nC^b&i»j Add JFAC4MbMru.
<<rerde LMiz CUw CS«»*n
>Q9«rtr V^4C
沁 dam* htftw AMat 12 iMte xngimxn.. iwc« m &4apMl
*7^*-*©
path »«fTt3
fMep*€<c Ab“c
#
由于已添加了 spring的jar包,因此不选任何jar包
#
#
Q Add Spring Capabilities [ 回 j
Add Spring Capabilities
Add Spring bean configuration file
[V] Enable AOP Builder
i La rger projects th at do not use Spring AOP may see a performance gain by leaving this disabled.
[7] Specify new or existing Spring bean configuration file?
Bean configuration type: 0? New Existing
Folder: src Browse
Fi Ie: application I
\^) < Back Next > Finish Cancel
k _ i
生成 app 1 icationContext. xml 配置文件,点击 finish0
. xml文件,把常用的命名空间加入
<?xml version="l'0" encoding="UTF-8”?> <beans
xmlns=z'http: //www. springframework, org/sch ema/beans”
xmlns: xsi="zhttp: //www. w3. org/2001/XMLSc hema-instance”
xmlns:context="http://www. springframework
・ org/schema/context”
xmlns:aop=^http://www. springframework, o rg/schema/aop