ssh整合
struts+spring+hibernte配合使用
进入高级
java ee 目前最流行的开发方式。
开发一个雇员薪资管理系统
ssh绝对是web项目
1,spring
创建一个myssh项目。
引入spring的开发包。
commons-logging.jar spring.jar等
包
在web创建个lib文件夹,放入需要的
包,引入到工程。
beans.xml或
applicationContext.xml放在src目录
,将来换地方。
applicationContext.xml的头代码可
以直接拷贝。
每加入一个框架就测试一次。
创建一个测试类
ApplicationContext ac=new
ClassPathXmlApplicationContext
("bean.xml");
TestService ts=(TestService)
ac.getbean("testService");
<bean id="testService"
class='cn.lb.test.TestSErvice'></
bean>
如果有时候工具不提示,关闭下文件
再打开。