Myeclipse创建新项目

1. 打开myeclipse, 配置mysql server

    preference里找到 show view-- DB Browser, 新建数据库驱动.

    1. URL填写: jdbc:mysql://localhost:3306/myznt

    2. add jars

    3. driver classname:org.gjt.mm.mysql.Driver  

    4. save password 

    然后再DB Browser里 右键新建的数据库驱动open connection验证连接成功

2. 新建web project

3. 给项目添加SSH支持, 顺序为spring, hibernate, struts

    spring: 默认包,  finish , 右键sping包名, build path->remove

    hibernate: 默认包, next:  spring configuration file-> next: Existing  spring configuration file->next: 选自己创建的数据库->next: 取消勾选create工厂属性->finish

    struts: 2.1, /*->next:默认包

    引入自己的包: 右键项目 -> import->filesystem->导入自己的jar包, 放入 Test_SSHWebRootWEB-INFlib

还有没有导入的包: 右键项目0> build path-> add external archives->选择jar

原文地址:https://www.cnblogs.com/wujixing/p/5382196.html