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..c0f682f8c69f458a07be90af8ca19a7e1c85c89d --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000000000000000000000000000000000000..fb597b2a63e9968cb228397c80d02d6600066d9b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000000000000000000000000000000000000..239ee96bbe1cf0302e15cf4ee0f743b320428f1b --- /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..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ 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..b107a2dd81165eaaf682ad3da030668b937fbb6c --- /dev/null +++ b/.idea/web-framework.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/web-framework/.gitignore b/out/production/web-framework/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..a1c2a238a965f004ff76978ac1086aa6fe95caea --- /dev/null +++ b/out/production/web-framework/.gitignore @@ -0,0 +1,23 @@ +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* diff --git a/out/production/web-framework/.idea/.gitignore b/out/production/web-framework/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..13566b81b018ad684f3a35fee301741b2734c8f4 --- /dev/null +++ b/out/production/web-framework/.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/out/production/web-framework/.idea/misc.xml b/out/production/web-framework/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ b/out/production/web-framework/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/out/production/web-framework/.idea/modules.xml b/out/production/web-framework/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e9987035052f276318390db9534dbdd425b2905 --- /dev/null +++ b/out/production/web-framework/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/out/production/web-framework/.idea/vcs.xml b/out/production/web-framework/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/out/production/web-framework/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/out/production/web-framework/.idea/web-framework.iml b/out/production/web-framework/.idea/web-framework.iml new file mode 100644 index 0000000000000000000000000000000000000000..b107a2dd81165eaaf682ad3da030668b937fbb6c --- /dev/null +++ b/out/production/web-framework/.idea/web-framework.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/web-framework/README.en.md b/out/production/web-framework/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..bd2cb730acb8953f053bb4efffb6c69acc969952 --- /dev/null +++ b/out/production/web-framework/README.en.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/out/production/web-framework/README.md b/out/production/web-framework/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d63e54d903a205fa41d4cab0fa6e8156492ae0dc --- /dev/null +++ b/out/production/web-framework/README.md @@ -0,0 +1,40 @@ +# 软件开发与管理课程 - Java EE + +## 基于Maven的JavaSE项目 + +#### 介绍 +在IDEA中创建基于Maven的JavaSE或Web项目,实现任意功能,并完成以下Maven功能的验证: + +* 添加JUnit(版本不限)依赖,指定Scope。 +* 运行Maven测试 +* 部署运行项目 +* 使用Javadoc插件生成项目文档 + + +## 基于Model2的登录功能 + +#### 介绍 +基于Model2的登录功能 +包括: +* 页面:Login.jsp,LoginSuccess(main).jsp +* Java类:LoginServlet.java,User.java +* 数据库:user表 + +## 基于Filter的用户登录验证 + +#### 介绍 +- 类:LoginFilter.java +- 要求:退出系统后不能访问main.jsp,跳转到login.jsp +- 方法:点击退出,清除session + +更复杂的验证例子,参考 +http://www.cnblogs.com/coderland/p/5902878.html + + +## 基于Listener完成在线人数和登陆用户统计 + +#### 介绍 +- 要求:显示在线人数和登陆用户数 +- 方法: +1. 使用监听器(HttpSessionListener)完成功能 +2. 加入用户退出功能 diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..f9c216d529d872b03a7ec7bddcbded568204015d --- /dev/null +++ b/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + org.example + maven-demo1 + 1.0-SNAPSHOT + jar + + maven-demo1 + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/java/org/example/App.java b/src/main/java/org/example/App.java new file mode 100644 index 0000000000000000000000000000000000000000..5f21d2e226b4d7fdea016d811e98992006c6f8b1 --- /dev/null +++ b/src/main/java/org/example/App.java @@ -0,0 +1,13 @@ +package org.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/org/example/AppTest.java b/src/test/java/org/example/AppTest.java new file mode 100644 index 0000000000000000000000000000000000000000..d5f435df0340a1f8b4f2cd9b9d6220ffd05c2d21 --- /dev/null +++ b/src/test/java/org/example/AppTest.java @@ -0,0 +1,38 @@ +package org.example; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000000000000000000000000000000000000..4d0edc4586bb4f9678c6e433117c07d50e182322 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Tue Apr 16 16:05:35 CST 2024 +version=1.0-SNAPSHOT +groupId=org.example +artifactId=maven-demo1 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..6f29ee31b536ccdcc089db11341ee159064f2be3 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +org\example\App.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..6d9ecc0b34a9cdaf93604707c03c62e842c4b26c --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +D:\code\maven-demo1\src\main\java\org\example\App.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..6077a71995d636a319bc83d3d96324dcd05afbc3 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -0,0 +1 @@ +org\example\AppTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..879cd20e4a06e6216bd1c4a8a5c982259143c893 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -0,0 +1 @@ +D:\code\maven-demo1\src\test\java\org\example\AppTest.java diff --git a/target/surefire-reports/TEST-org.example.AppTest.xml b/target/surefire-reports/TEST-org.example.AppTest.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e4e2cc2b9bca4e601fb5f50b07244c00e32e700 --- /dev/null +++ b/target/surefire-reports/TEST-org.example.AppTest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/org.example.AppTest.txt b/target/surefire-reports/org.example.AppTest.txt new file mode 100644 index 0000000000000000000000000000000000000000..4bbb05a9851fee058f9e7846144e02ff2f2a09a0 --- /dev/null +++ b/target/surefire-reports/org.example.AppTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: org.example.AppTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec diff --git a/test.java b/test.java new file mode 100644 index 0000000000000000000000000000000000000000..048ecc3d3a00584dcf2170fe4123b726f10cc37a --- /dev/null +++ b/test.java @@ -0,0 +1,5 @@ +public class test { + public static void main(String[] args) { + System.out.println("hello world"); + } +} diff --git a/tomcat-demo6.iml b/tomcat-demo6.iml new file mode 100644 index 0000000000000000000000000000000000000000..e3e83215dc3cf9b6eeb75a65878d23b2e56d7f8b --- /dev/null +++ b/tomcat-demo6.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file