From 93f2c8105421acef2546972a1cbd73f00a69f14e Mon Sep 17 00:00:00 2001 From: zhoujun Date: Thu, 28 Mar 2019 11:12:59 +0800 Subject: [PATCH] =?UTF-8?q?[feature]Chap01-=E7=AE=80=E5=8D=95=E5=B7=A5?= =?UTF-8?q?=E5=8E=82=E6=A8=A1=E5=BC=8F--=E7=AE=80=E6=98=93=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [how] --- SimpleFactory/.idea/.name | 1 + SimpleFactory/.idea/compiler.xml | 18 + SimpleFactory/.idea/encodings.xml | 6 + SimpleFactory/.idea/misc.xml | 14 + SimpleFactory/.idea/uiDesigner.xml | 124 ++++ SimpleFactory/.idea/workspace.xml | 686 ++++++++++++++++++ SimpleFactory/SimpleFactory.iml | 2 + SimpleFactory/pom.xml | 51 ++ .../ifish/designpattern/OperationFactory.java | 27 + .../designpattern/SpringCalApplication.java | 24 + .../controller/OperationController.java | 40 + .../ifish/designpattern/model/OperaModel.java | 43 ++ .../designpattern/model/OperationAdd.java | 9 + .../designpattern/model/OperationDiv.java | 11 + .../designpattern/model/OperationMul.java | 8 + .../designpattern/model/OperationSub.java | 9 + .../designpattern/model/ResultModel.java | 14 + .../src/main/resources/application.properties | 0 .../main/resources/templates/operation.html | 60 ++ .../src/main/resources/templates/result.html | 14 + 20 files changed, 1161 insertions(+) create mode 100644 SimpleFactory/.idea/.name create mode 100644 SimpleFactory/.idea/compiler.xml create mode 100644 SimpleFactory/.idea/encodings.xml create mode 100644 SimpleFactory/.idea/misc.xml create mode 100644 SimpleFactory/.idea/uiDesigner.xml create mode 100644 SimpleFactory/.idea/workspace.xml create mode 100644 SimpleFactory/SimpleFactory.iml create mode 100644 SimpleFactory/pom.xml create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/OperationFactory.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/SpringCalApplication.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/controller/OperationController.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/OperaModel.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/OperationAdd.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/OperationDiv.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/OperationMul.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/OperationSub.java create mode 100644 SimpleFactory/src/main/java/site/ifish/designpattern/model/ResultModel.java create mode 100644 SimpleFactory/src/main/resources/application.properties create mode 100644 SimpleFactory/src/main/resources/templates/operation.html create mode 100644 SimpleFactory/src/main/resources/templates/result.html diff --git a/SimpleFactory/.idea/.name b/SimpleFactory/.idea/.name new file mode 100644 index 0000000..4e37ec7 --- /dev/null +++ b/SimpleFactory/.idea/.name @@ -0,0 +1 @@ +simplefactory \ No newline at end of file diff --git a/SimpleFactory/.idea/compiler.xml b/SimpleFactory/.idea/compiler.xml new file mode 100644 index 0000000..840d789 --- /dev/null +++ b/SimpleFactory/.idea/compiler.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SimpleFactory/.idea/encodings.xml b/SimpleFactory/.idea/encodings.xml new file mode 100644 index 0000000..e79da7e --- /dev/null +++ b/SimpleFactory/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SimpleFactory/.idea/misc.xml b/SimpleFactory/.idea/misc.xml new file mode 100644 index 0000000..4b661a5 --- /dev/null +++ b/SimpleFactory/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/SimpleFactory/.idea/uiDesigner.xml b/SimpleFactory/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/SimpleFactory/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SimpleFactory/.idea/workspace.xml b/SimpleFactory/.idea/workspace.xml new file mode 100644 index 0000000..c7f7019 --- /dev/null +++ b/SimpleFactory/.idea/workspace.xml @@ -0,0 +1,686 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+ +
+ +
+
+ +
+
+ + +
+
+ + + + + + + + diff --git a/SimpleFactory/src/main/resources/templates/result.html b/SimpleFactory/src/main/resources/templates/result.html new file mode 100644 index 0000000..a0a2e93 --- /dev/null +++ b/SimpleFactory/src/main/resources/templates/result.html @@ -0,0 +1,14 @@ + + + + Getting Started: Handling Form Submission + + + +

Result

+
+

+

+Submit another message + + \ No newline at end of file