文档介绍:Myeclipsessh框架搭建步骤项目创建创建web项目添加jar包到lib目录下由于直接使用myeclipse添加ssh特性导致jar包冲突,所以事先把jar包添加到创建的项目的webroot下的web-inf文件夹的lib目录下添加完后,这些jar包自动添加到classpath添加spring添加spring特性由于已添加了spring的jar包,,点击finish。,把常用的命名空间加入<?xmlversion=""encoding="UTF-8"?><beansxmlns="" xmlns:xsi=""xmlns:context="" xmlns:aop=""xmlns:tx="" xsi:schemaLocation=" "></beans>: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/classes/applicationContext*.xml</param-value> </context-param> <listener> <listener-.</listener-class> </listener>配置监听的目的:ContextLoaderListener的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。添加hibernate数据库连接驱动如果没有需要的数据库连接驱动,需要在添加特性之前,添加数据库连接驱动Window->openperspective->myeclipsedatabaseexplorer目前没有我们需要的驱动,我们这里使用mysql。,打开连接这样,在添加hibernate特性时就会出现数据库连接驱动选择项。添加hibernate特性同样,也不添加library