# JavaEEDemo **Repository Path**: utahaw/javaEEDemo ## Basic Information - **Project Name**: JavaEEDemo - **Description**: JavaEE Curriculum Design - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-06-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaEEDemo - 2020.6.11 pull 可以跑了 我的环境是 idea + mysql 8.0.15 + maven + tomcat 9.0.24 ,不知道mysql你们用不用的惯,可以再改。 - 推荐一个DBMS:Dbeaver,我们听过的见过的DB目前都兼容。 - 请尝试运行项目(记得导项目内的sql 数值可以自己改你喜欢的 默认的账号密码都是admin): - 登录页 - ![登录页:](https://images.gitee.com/uploads/images/2020/0611/010413_499e8c9c_2311436.png "Snipaste_2020-06-11_00-40-44.png") - 登陆成功页 - ![登陆成功页:](https://images.gitee.com/uploads/images/2020/0611/010441_a83ac6d0_2311436.png "Snipaste_2020-06-11_00-40-51.png") #### 预备知识 1. maven的使用:maven就是个导jar包的东西(附eclipse和idea的基本教程链接) 1.eclipse:https://www.cnblogs.com/tangshengwei/p/6341462.html 2.idea:https://blog.csdn.net/qq_37497322/article/details/78988378 2. git的使用:(讲人话就是协同仓库管理) - 教程链接:(客户端版本,git也可以直接在eclipse上用,这样的话第一个链接只需要看第5步:获得密钥,eclipse教程见第二个链接)https://blog.csdn.net/xiliu20170707/article/details/79618717?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.nonecase - eclipse的git: https://blog.csdn.net/hhhccckkk/article/details/10458159?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase #### 介绍 JavaEE Curriculum Design **1. 开发流程(甜甜)** - 流程 1. 系统架构 2. Jar包导入 3. 目录结构: - Project - src - packagename.vo - packegename.dao - packegename.dao.impl - packegename.service - packegename.service.impl - packegename.tool - applicationContext.xml - stucts.properties - sturts.xml -webapp - WEB-INF - xxx.jsp **2. 数据结构** | 表名 | 字段名 | 字段类型 | |------|----------|--------| | roleE | | | | | roleName | String | | | race | String | DAO、DAOimpl定义(直接用上一表就可) 类名 属性名/方法名 类型/返回值 Service、service.impl定义 类名 属性名/方法名 类型/返回值 描述 JSP页面 页面名称 传递的参数 类型 Reg.jsp username String password String Action定义 类名 属性名/方法名 类型/返回值 描述 UserAction users Users usersService UsersService GetXxx(); 对应类型 SetXxx(); void userAdd() String 实现user的增加 … ### 2. 开发流程 **- a) 后端** 1. 构造数据库>>提供数据库表给写Service的 1. 反向生成POJO类 1. 创建dao接口 1. 实现dao接口dao.impl 1. 配置dao的spring 1. 创建Service接口>>提供Service表给写Action的 1. 实现service接口service.impl 1. 配置Service的spring 1. 编写aciton>>提供Action表给写页面的 1. 配置action的spring **- b) 前端** 1. 创建JSP页面+css+JavaScript>>提供页面参数表给写拦截器的 1. 配置拦截器 **- c) 前后端链接** 1. 配置dwr 1. 配置spring #### 软件架构 软件架构说明 1. 暂定ssh+mysql,不熟再改(这里是mysql 8.0.15) #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 六公主