- SVN
1、(版本控制工具,用于多人开发)
1) 进行版本控制(功能相当于Eclipse右键中的 Team–>show local history)
2) 恢复之前的版本
3) 权限控制
2、SVN体系结构
SVN服务器(操作:建仓库、建用户、设用户权限)
SVN客户端(1、让文件夹与SVN同步:右键SVNcheckout
2、文件的发布commit与文件夹的更新update以实现同步)
crm(客户关系管理)练习
1、搭建ssh环境
-第一步:导入jar包
关键的包
-第二步:struts2环境搭建
1)创建action,创建struts.xml配置文件,配置action
2)配置struts2过滤器 (在web.xml文件中)<filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
-第三步:搭建hibernate环境
1)创建实体类
关于自动生成属性:在类内右键选择source–>generate getters and setters则自动生成
2)创建实体类和数据库表映射关系
3)创建hibernate核心配置文件
数据表在hibernate.cfg.xml中映射
-第四步:搭建spring环境 (在web.xml文件中)
1)搭建spring核心配置文件
2)让spring配置文件在服务器启动时加载
配置监听器
指定spring配置文件位置<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:applicationContext.xml </param-value>
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
-第五步:struts2和spring整合
-第六步:spring和hibernate整合
五六步主要在applicationContext.xml文件中;
action注入service,
service注入dao
dao注入hibernateTemplate,
hibernateTemplate注入 sessionFactory