diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..13566b81b018ad684f3a35fee301741b2734c8f4 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000000000000000000000000000000000000..de3f5b54715173faeda02da38b0dc246e086b560 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000000000000000000000000000000000000..63574ec0afb84f7375a0ec33a00da97c7de2310b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000000000000000000000000000000000000..712ab9d985c20018a0c97b93d2148ac1ffe588a5 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..800d44b9e8a339a7c876a4602a74472c9365700f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e9987035052f276318390db9534dbdd425b2905 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/web-framework.iml b/.idea/web-framework.iml new file mode 100644 index 0000000000000000000000000000000000000000..d6ebd4805981b8400db3e3291c74a743fef9a824 --- /dev/null +++ b/.idea/web-framework.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index d63e54d903a205fa41d4cab0fa6e8156492ae0dc..a32f1c55ee5c8b3a0ca9e04e902526864f0e2527 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,21 @@ -# 软件开发与管理课程 - Java EE - -## 基于Maven的JavaSE项目 +# 软件开发与管理项目 #### 介绍 -在IDEA中创建基于Maven的JavaSE或Web项目,实现任意功能,并完成以下Maven功能的验证: - -* 添加JUnit(版本不限)依赖,指定Scope。 -* 运行Maven测试 -* 部署运行项目 -* 使用Javadoc插件生成项目文档 +本仓库属于软件开发与管理课程。 +包含作业和项目两个部分。 +#### 要求 +* 每次提交前填写以下的完成内容 +* 并在提交消息中写明具体内容 -## 基于Model2的登录功能 +#### 完成内容列表 +1. 搭建环境 +2. xxxx +3. xxxx -#### 介绍 -基于Model2的登录功能 -包括: -* 页面:Login.jsp,LoginSuccess(main).jsp -* Java类:LoginServlet.java,User.java -* 数据库:user表 +#### 补充说明 -## 基于Filter的用户登录验证 - -#### 介绍 -- 类:LoginFilter.java -- 要求:退出系统后不能访问main.jsp,跳转到login.jsp -- 方法:点击退出,清除session +1. xxxx +2. xxxx +3. xxxx -更复杂的验证例子,参考 -http://www.cnblogs.com/coderland/p/5902878.html - - -## 基于Listener完成在线人数和登陆用户统计 - -#### 介绍 -- 要求:显示在线人数和登陆用户数 -- 方法: -1. 使用监听器(HttpSessionListener)完成功能 -2. 加入用户退出功能 diff --git a/READMEen.md b/READMEen.md new file mode 100644 index 0000000000000000000000000000000000000000..bd2cb730acb8953f053bb4efffb6c69acc969952 --- /dev/null +++ b/READMEen.md @@ -0,0 +1,36 @@ +# 软件开发与管理 + +#### Description +{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} + +#### Software Architecture +Software architecture description + +#### Installation + +1. xxxx +2. xxxx +3. xxxx + +#### Instructions + +1. xxxx +2. xxxx +3. xxxx + +#### Contribution + +1. Fork the repository +2. Create Feat_xxx branch +3. Commit your code +4. Create Pull Request + + +#### Gitee Feature + +1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md +2. Gitee blog [blog.gitee.com](https://blog.gitee.com) +3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) +4. The most valuable open source project [GVP](https://gitee.com/gvp) +5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) +6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..77b4e884ca3d683e98a2f35e2775ca893d94f8ef --- /dev/null +++ b/pom.xml @@ -0,0 +1,71 @@ + + 4.0.0 + org.example + untitled12 + war + 1.0-SNAPSHOT + untitled12 Maven Webapp + http://maven.apache.org + + + + + junit + junit + 4.12 + test + + + + + 1.8 + 1.8 + + + UTF-8 + + -Dfile.encoding=UTF-8 + + UTF-8 + UTF-8 + + true + true + + + + untitled12 + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.2 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.3.0 + + none + + + + + org.apache.maven.plugins + maven-war-plugin + 3.2.0 + + false + + + + + + + + + + diff --git a/src/main/java/imu/MyCalender.java b/src/main/java/imu/MyCalender.java new file mode 100644 index 0000000000000000000000000000000000000000..a10fc277f1e3843f44e4a0ab1e4a75f58fc441a6 --- /dev/null +++ b/src/main/java/imu/MyCalender.java @@ -0,0 +1,13 @@ +package imu; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +public class MyCalender { + + public void func(){ + DateFormat format = new SimpleDateFormat("yyyy-MM-dd"); + Date date = new Date(); + System.out.println(format.format(date)); + } +} diff --git a/src/main/webapp/WEB-INF/a.html b/src/main/webapp/WEB-INF/a.html new file mode 100644 index 0000000000000000000000000000000000000000..9ac506a49f219b1d00230995b6d9cf0a7dca6fc6 --- /dev/null +++ b/src/main/webapp/WEB-INF/a.html @@ -0,0 +1,10 @@ + + + + + Title + + +aaaaa + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..9f88c1f9632445500e3b3688fe477b860f77d8f2 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,7 @@ + + + + Archetype Created Web Application + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp new file mode 100644 index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2 --- /dev/null +++ b/src/main/webapp/index.jsp @@ -0,0 +1,5 @@ + + +

Hello World!

+ + diff --git a/src/test/java/imutest/MyCalenderTest.java b/src/test/java/imutest/MyCalenderTest.java new file mode 100644 index 0000000000000000000000000000000000000000..cfdb5a6cb9bf80d60a3bd9c4bf9e257a8a63997f --- /dev/null +++ b/src/test/java/imutest/MyCalenderTest.java @@ -0,0 +1,13 @@ +package imutest; +import org.junit.Test; + + +import imu.MyCalender; + +public class MyCalenderTest { + @Test + public void test(){ + MyCalender myCalender = new MyCalender(); + myCalender.func(); + } +}