diff --git a/Readme.md b/Readme.md index d50921ca..f482d4d2 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -> 本文件夹记录了学习Java过程敲下的Demo +# Java后台校招准备 - **Java Grammar** : 深入探究Java的基础语法以及语言特性 - **Head First Java Web** @@ -8,14 +8,19 @@ - **Head First Front End** : 从零到一前端入门 - **SSH&SSM** - Hibernate - - + - Struts2 +- Sword on Offer : 《剑指Offer》面试题 - CCF Solving : 使用Java解决历年CCF考题 + +--- + +## TODO + - Core Java : 《Java核心技术卷一》实践代码 - Design Pattern : 《设计模式》实践代码 - Head First Design Pattern : 《Head First设计模式》实践代码 - Thinking in Java : 《Java编程思想》实践代码 - Understanding the JVM : 《深入理解Java虚拟机》实践代码 -- Sword on Offer : 《剑指Offer》面试题 - Objected Oriented Course : 大二面向对象课程练习 - Java Concurrency in Practice : Java并发编程实战书中Demo - Java Basic Practice :根据各种博客练习Java基础语法时的Demo diff --git a/SSH&SSM/Hibernate/Demo4/.idea/workspace.xml b/SSH&SSM/Hibernate/Demo4/.idea/workspace.xml index 1c723a7c..08b904e9 100644 --- a/SSH&SSM/Hibernate/Demo4/.idea/workspace.xml +++ b/SSH&SSM/Hibernate/Demo4/.idea/workspace.xml @@ -63,25 +63,13 @@ - - - - - - - - - - + - - + + - - - @@ -96,6 +84,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -108,11 +126,12 @@ @@ -135,7 +154,6 @@ - @@ -160,7 +178,7 @@ - + @@ -177,6 +195,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1540627680484 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Demo1:war exploded + + + + + + + + Hibernate + + + + + + + + + + + + + + + 1.8 + + + + + + + + Demo1 + + + + + + + + 1.8 + + + + + + + + Struts 2-2.5.14.1 + + + + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/Demo1.iml b/SSH&SSM/Struts2/Demo1/Demo1.iml new file mode 100644 index 00000000..03f24572 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/Demo1.iml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + file://$MODULE_DIR$/src/struts.xml + jar://$MODULE_DIR$/lib/struts2-core.jar!/struts-default.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/lib/asm-3.3.jar b/SSH&SSM/Struts2/Demo1/lib/asm-3.3.jar new file mode 100644 index 00000000..d44dfd86 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/asm-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/asm-commons-3.3.jar b/SSH&SSM/Struts2/Demo1/lib/asm-commons-3.3.jar new file mode 100644 index 00000000..e5098420 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/asm-commons-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/asm-tree-3.3.jar b/SSH&SSM/Struts2/Demo1/lib/asm-tree-3.3.jar new file mode 100644 index 00000000..374bc2e9 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/asm-tree-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/commons-fileupload-1.3.1.jar b/SSH&SSM/Struts2/Demo1/lib/commons-fileupload-1.3.1.jar new file mode 100644 index 00000000..af0cda22 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/commons-fileupload-1.3.1.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/commons-io-2.2.jar b/SSH&SSM/Struts2/Demo1/lib/commons-io-2.2.jar new file mode 100644 index 00000000..84ca5658 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/commons-io-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/commons-lang3-3.2.jar b/SSH&SSM/Struts2/Demo1/lib/commons-lang3-3.2.jar new file mode 100644 index 00000000..a30d272a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/commons-lang3-3.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/freemarker-2.3.22.jar b/SSH&SSM/Struts2/Demo1/lib/freemarker-2.3.22.jar new file mode 100644 index 00000000..a67a1c12 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/freemarker-2.3.22.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/javassist-3.11.0.GA.jar b/SSH&SSM/Struts2/Demo1/lib/javassist-3.11.0.GA.jar new file mode 100644 index 00000000..b3bfeeb3 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/javassist-3.11.0.GA.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/log4j-api-2.2.jar b/SSH&SSM/Struts2/Demo1/lib/log4j-api-2.2.jar new file mode 100644 index 00000000..21bbcad4 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/log4j-api-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/log4j-core-2.2.jar b/SSH&SSM/Struts2/Demo1/lib/log4j-core-2.2.jar new file mode 100644 index 00000000..a8279f78 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/log4j-core-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/ognl-3.0.6.jar b/SSH&SSM/Struts2/Demo1/lib/ognl-3.0.6.jar new file mode 100644 index 00000000..b0838b7a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/ognl-3.0.6.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/struts2-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/lib/struts2-core-2.3.24.jar new file mode 100644 index 00000000..0f402080 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/struts2-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/lib/xwork-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/lib/xwork-core-2.3.24.jar new file mode 100644 index 00000000..e24c3109 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/lib/xwork-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/com/mio4/action/HelloAction.class b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/com/mio4/action/HelloAction.class new file mode 100644 index 00000000..0d631cc7 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/com/mio4/action/HelloAction.class differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/hibernate.cfg.xml b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/hibernate.cfg.xml new file mode 100644 index 00000000..62eabf06 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/hibernate.cfg.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/struts.xml b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/struts.xml new file mode 100644 index 00000000..4328ce7f --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/classes/struts.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + /demo1/success.jsp + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-3.3.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-3.3.jar new file mode 100644 index 00000000..d44dfd86 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-commons-3.3.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-commons-3.3.jar new file mode 100644 index 00000000..e5098420 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-commons-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-tree-3.3.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-tree-3.3.jar new file mode 100644 index 00000000..374bc2e9 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/asm-tree-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-fileupload-1.3.1.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-fileupload-1.3.1.jar new file mode 100644 index 00000000..af0cda22 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-fileupload-1.3.1.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-io-2.2.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-io-2.2.jar new file mode 100644 index 00000000..84ca5658 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-io-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-lang3-3.2.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-lang3-3.2.jar new file mode 100644 index 00000000..a30d272a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/commons-lang3-3.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/freemarker-2.3.22.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/freemarker-2.3.22.jar new file mode 100644 index 00000000..a67a1c12 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/freemarker-2.3.22.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/javassist-3.11.0.GA.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/javassist-3.11.0.GA.jar new file mode 100644 index 00000000..b3bfeeb3 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/javassist-3.11.0.GA.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-api-2.2.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-api-2.2.jar new file mode 100644 index 00000000..21bbcad4 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-api-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-core-2.2.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-core-2.2.jar new file mode 100644 index 00000000..a8279f78 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/log4j-core-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/ognl-3.0.6.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/ognl-3.0.6.jar new file mode 100644 index 00000000..b0838b7a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/ognl-3.0.6.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/struts2-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/struts2-core-2.3.24.jar new file mode 100644 index 00000000..0f402080 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/struts2-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/xwork-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/xwork-core-2.3.24.jar new file mode 100644 index 00000000..e24c3109 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/lib/xwork-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/web.xml b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/web.xml new file mode 100644 index 00000000..5230715c --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + + struts2 + org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter + + struts.action.extension + action,, + + + + struts2 + /* + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/demo1.jsp b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/demo1.jsp new file mode 100644 index 00000000..1609228d --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/demo1.jsp @@ -0,0 +1,17 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:10 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Demo1 + + + hello.action
+ hello.do + + diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/success.jsp b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/success.jsp new file mode 100644 index 00000000..6b2e8b44 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/demo1/success.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:47 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + success + + +

页面跳转成功

+ + diff --git a/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/index.jsp b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/index.jsp new file mode 100644 index 00000000..8d1dc54d --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/out/artifacts/Demo1_war_exploded/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:08 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git a/SSH&SSM/Struts2/Demo1/src/com/mio4/action/HelloAction.java b/SSH&SSM/Struts2/Demo1/src/com/mio4/action/HelloAction.java new file mode 100644 index 00000000..3f9efd7e --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/src/com/mio4/action/HelloAction.java @@ -0,0 +1,25 @@ +package com.mio4.action; + +/** + * 处理用户请求 + */ +public class HelloAction { + + /** + * say hello + * @return + */ + public String sayHello(){ + System.out.println("Hello,Strut2!"); + return "ok"; + } + + /** + * 方法默认值 + * @return + */ + public String execute(){ + System.out.println("execute执行"); + return null; + } +} diff --git a/SSH&SSM/Struts2/Demo1/src/hibernate.cfg.xml b/SSH&SSM/Struts2/Demo1/src/hibernate.cfg.xml new file mode 100644 index 00000000..62eabf06 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/src/hibernate.cfg.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/src/struts.xml b/SSH&SSM/Struts2/Demo1/src/struts.xml new file mode 100644 index 00000000..9c767a8b --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/src/struts.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + /demo1/success.jsp + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/com/mio4/action/HelloAction.class b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/com/mio4/action/HelloAction.class new file mode 100644 index 00000000..0d631cc7 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/com/mio4/action/HelloAction.class differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/hibernate.cfg.xml b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/hibernate.cfg.xml new file mode 100644 index 00000000..62eabf06 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/hibernate.cfg.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/struts.xml b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/struts.xml new file mode 100644 index 00000000..4328ce7f --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/WEB-INF/classes/struts.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + /demo1/success.jsp + + + + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-3.3.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-3.3.jar new file mode 100644 index 00000000..d44dfd86 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-commons-3.3.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-commons-3.3.jar new file mode 100644 index 00000000..e5098420 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-commons-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-tree-3.3.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-tree-3.3.jar new file mode 100644 index 00000000..374bc2e9 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/asm-tree-3.3.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-fileupload-1.3.1.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-fileupload-1.3.1.jar new file mode 100644 index 00000000..af0cda22 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-fileupload-1.3.1.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-io-2.2.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-io-2.2.jar new file mode 100644 index 00000000..84ca5658 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-io-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-lang3-3.2.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-lang3-3.2.jar new file mode 100644 index 00000000..a30d272a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/commons-lang3-3.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/freemarker-2.3.22.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/freemarker-2.3.22.jar new file mode 100644 index 00000000..a67a1c12 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/freemarker-2.3.22.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/javassist-3.11.0.GA.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/javassist-3.11.0.GA.jar new file mode 100644 index 00000000..b3bfeeb3 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/javassist-3.11.0.GA.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-api-2.2.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-api-2.2.jar new file mode 100644 index 00000000..21bbcad4 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-api-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-core-2.2.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-core-2.2.jar new file mode 100644 index 00000000..a8279f78 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/log4j-core-2.2.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/ognl-3.0.6.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/ognl-3.0.6.jar new file mode 100644 index 00000000..b0838b7a Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/ognl-3.0.6.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/struts2-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/struts2-core-2.3.24.jar new file mode 100644 index 00000000..0f402080 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/struts2-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/xwork-core-2.3.24.jar b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/xwork-core-2.3.24.jar new file mode 100644 index 00000000..e24c3109 Binary files /dev/null and b/SSH&SSM/Struts2/Demo1/web/WEB-INF/lib/xwork-core-2.3.24.jar differ diff --git a/SSH&SSM/Struts2/Demo1/web/WEB-INF/web.xml b/SSH&SSM/Struts2/Demo1/web/WEB-INF/web.xml new file mode 100644 index 00000000..5230715c --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/WEB-INF/web.xml @@ -0,0 +1,18 @@ + + + + struts2 + org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter + + struts.action.extension + action,, + + + + struts2 + /* + + \ No newline at end of file diff --git a/SSH&SSM/Struts2/Demo1/web/demo1/demo1.jsp b/SSH&SSM/Struts2/Demo1/web/demo1/demo1.jsp new file mode 100644 index 00000000..1609228d --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/demo1/demo1.jsp @@ -0,0 +1,17 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:10 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + Demo1 + + + hello.action
+ hello.do + + diff --git a/SSH&SSM/Struts2/Demo1/web/demo1/success.jsp b/SSH&SSM/Struts2/Demo1/web/demo1/success.jsp new file mode 100644 index 00000000..6b2e8b44 --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/demo1/success.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:47 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + success + + +

页面跳转成功

+ + diff --git a/SSH&SSM/Struts2/Demo1/web/index.jsp b/SSH&SSM/Struts2/Demo1/web/index.jsp new file mode 100644 index 00000000..8d1dc54d --- /dev/null +++ b/SSH&SSM/Struts2/Demo1/web/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: 461152465 + Date: 2018/10/27 + Time: 16:08 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git a/SSH&SSM/Struts2/Struts2.md b/SSH&SSM/Struts2/Struts2.md new file mode 100644 index 00000000..b5062b05 --- /dev/null +++ b/SSH&SSM/Struts2/Struts2.md @@ -0,0 +1,7 @@ + + +- Demo1 : HelloStruts2 + +- Demo2 : + + \ No newline at end of file