diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..ebc6363
Binary files /dev/null and b/.DS_Store differ
diff --git a/articlehub/.DS_Store b/articlehub/.DS_Store
new file mode 100644
index 0000000..5172429
Binary files /dev/null and b/articlehub/.DS_Store differ
diff --git a/articlehub/.idea/artifacts/articlehub_war.xml b/articlehub/.idea/artifacts/articlehub_war.xml
new file mode 100644
index 0000000..f843683
--- /dev/null
+++ b/articlehub/.idea/artifacts/articlehub_war.xml
@@ -0,0 +1,8 @@
+
+
+ $PROJECT_DIR$/target
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/artifacts/articlehub_war_exploded.xml b/articlehub/.idea/artifacts/articlehub_war_exploded.xml
new file mode 100644
index 0000000..87f9c6a
--- /dev/null
+++ b/articlehub/.idea/artifacts/articlehub_war_exploded.xml
@@ -0,0 +1,41 @@
+
+
+ $PROJECT_DIR$/target/articlehub
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/compiler.xml b/articlehub/.idea/compiler.xml
new file mode 100644
index 0000000..0979b3d
--- /dev/null
+++ b/articlehub/.idea/compiler.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/copyright/profiles_settings.xml b/articlehub/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/articlehub/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/dataSources.ids b/articlehub/.idea/dataSources.ids
new file mode 100644
index 0000000..7535b6b
--- /dev/null
+++ b/articlehub/.idea/dataSources.ids
@@ -0,0 +1,60 @@
+
+
+
+
+ #@
+ `
+
+
+
+
+
+
+ 1
+ int(11)
+ 1
+
+
+ 1
+ varchar(200)
+
+
+ 1
+ varchar(200)
+
+
+ varchar(2000)
+
+
+ 1
+ text
+
+
+ varchar(200)
+
+
+ datetime
+
+
+ 1
+ int(11)
+ '0'
+
+
+ int(11)
+ '0'
+
+
+ datetime
+ 'CURRENT_TIMESTAMP'
+
+
+ datetime
+
+
+ id
+ 1
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/dataSources.local.xml b/articlehub/.idea/dataSources.local.xml
new file mode 100644
index 0000000..9366fe4
--- /dev/null
+++ b/articlehub/.idea/dataSources.local.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ master_key
+ root
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/dataSources.xml b/articlehub/.idea/dataSources.xml
new file mode 100644
index 0000000..3aaefe7
--- /dev/null
+++ b/articlehub/.idea/dataSources.xml
@@ -0,0 +1,19 @@
+
+
+
+
+ mysql
+ true
+ com.mysql.jdbc.Driver
+ jdbc:mysql://localhost:3306/ah
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/encodings.xml b/articlehub/.idea/encodings.xml
new file mode 100644
index 0000000..b26911b
--- /dev/null
+++ b/articlehub/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/inspectionProfiles/Project_Default.xml b/articlehub/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..a5b1d7c
--- /dev/null
+++ b/articlehub/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,345 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/inspectionProfiles/profiles_settings.xml b/articlehub/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..3b31283
--- /dev/null
+++ b/articlehub/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__com_alibaba_fastjson_1_2_47.xml b/articlehub/.idea/libraries/Maven__com_alibaba_fastjson_1_2_47.xml
new file mode 100644
index 0000000..dcd6ee5
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__com_alibaba_fastjson_1_2_47.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml b/articlehub/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
new file mode 100644
index 0000000..eab40b3
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml b/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml
new file mode 100644
index 0000000..d30f8a2
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jstl_javax_servlet_jsp_jstl_api_1_2_2.xml b/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jstl_javax_servlet_jsp_jstl_api_1_2_2.xml
new file mode 100644
index 0000000..25c8cf0
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__javax_servlet_jsp_jstl_javax_servlet_jsp_jstl_api_1_2_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml b/articlehub/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml
new file mode 100644
index 0000000..679e09a
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__javax_servlet_servlet_api_2_5.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__junit_junit_4_11.xml b/articlehub/.idea/libraries/Maven__junit_junit_4_11.xml
new file mode 100644
index 0000000..f33320d
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__junit_junit_4_11.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_41.xml b/articlehub/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_41.xml
new file mode 100644
index 0000000..e2831f2
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_41.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_commons_commons_dbcp2_2_5_0.xml b/articlehub/.idea/libraries/Maven__org_apache_commons_commons_dbcp2_2_5_0.xml
new file mode 100644
index 0000000..71c8ef9
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_commons_commons_dbcp2_2_5_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_6_0.xml b/articlehub/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_6_0.xml
new file mode 100644
index 0000000..bc0f1b3
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_commons_commons_pool2_2_6_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_6_2.xml b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_6_2.xml
new file mode 100644
index 0000000..76d1125
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_6_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_core_2_6_2.xml b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_core_2_6_2.xml
new file mode 100644
index 0000000..02a30aa
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_core_2_6_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_web_2_6_2.xml b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_web_2_6_2.xml
new file mode 100644
index 0000000..47a27ed
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_logging_log4j_log4j_web_2_6_2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_apache_taglibs_taglibs_standard_impl_1_2_5.xml b/articlehub/.idea/libraries/Maven__org_apache_taglibs_taglibs_standard_impl_1_2_5.xml
new file mode 100644
index 0000000..b18c0be
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_apache_taglibs_taglibs_standard_impl_1_2_5.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_10.xml b/articlehub/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_10.xml
new file mode 100644
index 0000000..36093ff
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_10.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/articlehub/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
new file mode 100644
index 0000000..f58bbc1
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_3_4_1.xml b/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_3_4_1.xml
new file mode 100644
index 0000000..19d1175
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_3_4_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_1.xml b/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_1.xml
new file mode 100644
index 0000000..774f47c
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_projectlombok_lombok_1_16_20.xml b/articlehub/.idea/libraries/Maven__org_projectlombok_lombok_1_16_20.xml
new file mode 100644
index 0000000..bcbf2ac
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_projectlombok_lombok_1_16_20.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..42e3c72
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_aop_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..9d3252b
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_beans_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..24e83c9
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_context_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..2784300
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_core_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..8151535
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_expression_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..d0484b5
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..8b68fe1
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_jdbc_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..e6f1139
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_tx_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..002d32d
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_web_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml b/articlehub/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml
new file mode 100644
index 0000000..0aed43d
--- /dev/null
+++ b/articlehub/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_4_RELEASE.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/misc.xml b/articlehub/.idea/misc.xml
new file mode 100644
index 0000000..538747c
--- /dev/null
+++ b/articlehub/.idea/misc.xml
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Android Lint
+
+
+ Google Web Toolkit issues
+
+
+ Java
+
+
+ Java language level migration aidsJava
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/modules.xml b/articlehub/.idea/modules.xml
new file mode 100644
index 0000000..771ab96
--- /dev/null
+++ b/articlehub/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/uiDesigner.xml b/articlehub/.idea/uiDesigner.xml
new file mode 100644
index 0000000..e96534f
--- /dev/null
+++ b/articlehub/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/.idea/workspace.xml b/articlehub/.idea/workspace.xml
new file mode 100644
index 0000000..4424b52
--- /dev/null
+++ b/articlehub/.idea/workspace.xml
@@ -0,0 +1,1725 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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line at end of file
diff --git a/articlehub/articlehub.iml b/articlehub/articlehub.iml
new file mode 100644
index 0000000..4bdcac4
--- /dev/null
+++ b/articlehub/articlehub.iml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/pom.xml b/articlehub/pom.xml
new file mode 100644
index 0000000..6542289
--- /dev/null
+++ b/articlehub/pom.xml
@@ -0,0 +1,176 @@
+
+
+ 4.0.0
+
+ net.articlehub
+ articlehub
+ 1.0-SNAPSHOT
+ war
+
+ articlehub Maven Webapp
+
+ http://www.example.com
+
+
+ UTF-8
+ 1.7
+ 1.7
+ UTF-8
+ 2.6.2
+
+
+
+
+
+
+ javax.servlet
+ servlet-api
+ 2.5
+ provided
+
+
+
+ javax.servlet.jsp
+ jsp-api
+ 2.2
+ provided
+
+
+
+ javax.servlet.jsp.jstl
+ javax.servlet.jsp.jstl-api
+ 1.2.2
+
+
+ org.apache.taglibs
+ taglibs-standard-impl
+ 1.2.5
+
+
+
+
+ junit
+ junit
+ 4.11
+ test
+
+
+
+
+ org.springframework
+ spring-webmvc
+ 5.0.4.RELEASE
+
+
+ org.springframework
+ spring-jdbc
+ 5.0.4.RELEASE
+
+
+
+
+ org.apache.logging.log4j
+ log4j-core
+ ${log4j2.version}
+
+
+ org.apache.logging.log4j
+ log4j-api
+ ${log4j2.version}
+
+
+ org.apache.logging.log4j
+ log4j-web
+ 2.6.2
+
+
+
+ org.projectlombok
+ lombok
+ 1.16.20
+ provided
+
+
+
+
+
+
+ org.apache.commons
+ commons-dbcp2
+ 2.5.0
+
+
+
+
+ org.mybatis
+ mybatis
+ 3.4.1
+
+
+ org.mybatis
+ mybatis-spring
+ 1.3.1
+
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.47
+
+
+
+
+ org.aspectj
+ aspectjweaver
+ 1.8.10
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.41
+
+
+
+
+
+
+ articlehub
+
+
+
+ maven-clean-plugin
+ 3.0.0
+
+
+
+ maven-resources-plugin
+ 3.0.2
+
+
+ maven-compiler-plugin
+ 3.7.0
+
+
+ maven-surefire-plugin
+ 2.20.1
+
+
+ maven-war-plugin
+ 3.2.0
+
+
+ maven-install-plugin
+ 2.5.2
+
+
+ maven-deploy-plugin
+ 2.8.2
+
+
+
+
+
diff --git a/articlehub/src/.DS_Store b/articlehub/src/.DS_Store
new file mode 100644
index 0000000..0787fb7
Binary files /dev/null and b/articlehub/src/.DS_Store differ
diff --git a/articlehub/src/main/.DS_Store b/articlehub/src/main/.DS_Store
new file mode 100644
index 0000000..4c8a305
Binary files /dev/null and b/articlehub/src/main/.DS_Store differ
diff --git a/articlehub/src/main/java/.DS_Store b/articlehub/src/main/java/.DS_Store
new file mode 100644
index 0000000..0a8bc21
Binary files /dev/null and b/articlehub/src/main/java/.DS_Store differ
diff --git a/articlehub/src/main/java/com/.DS_Store b/articlehub/src/main/java/com/.DS_Store
new file mode 100644
index 0000000..6c84dab
Binary files /dev/null and b/articlehub/src/main/java/com/.DS_Store differ
diff --git a/articlehub/src/main/java/com/ah/.DS_Store b/articlehub/src/main/java/com/ah/.DS_Store
new file mode 100644
index 0000000..06c7c43
Binary files /dev/null and b/articlehub/src/main/java/com/ah/.DS_Store differ
diff --git a/articlehub/src/main/java/com/ah/controller/ArticleController.java b/articlehub/src/main/java/com/ah/controller/ArticleController.java
new file mode 100644
index 0000000..2a1ff62
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/controller/ArticleController.java
@@ -0,0 +1,39 @@
+package com.ah.controller;
+
+import com.ah.service.ArticleService;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.*;
+import com.ah.model.Article;
+
+import javax.annotation.Resource;
+
+/**
+ * Created by jianyuchen on 2018/9/20.
+ */
+@Controller
+@RequestMapping("/article")
+public class ArticleController {
+
+ @Resource
+ ArticleService articleService;
+
+
+ @GetMapping("/add")
+ public String add(){
+
+ return "article_add";
+ }
+
+ @PostMapping("/save")
+ public String save(@ModelAttribute Article article, Model model){
+
+
+ articleService.insertArticle(article);
+
+ model.addAttribute("result",article);
+
+
+ return "show";
+ }
+}
diff --git a/articlehub/src/main/java/com/ah/controller/CommonController.java b/articlehub/src/main/java/com/ah/controller/CommonController.java
new file mode 100644
index 0000000..2e40418
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/controller/CommonController.java
@@ -0,0 +1,69 @@
+package com.ah.controller;
+
+import com.ah.model.Article;
+import com.ah.service.CommonService;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Created by jianyuchen on 2018/9/22.
+ *
+ * 通用控制器
+ * 使用本控制器,可以不建实体类,因为内部使用map传递数据.
+ * 本控制器的目的是结合mybatis配置,用map代替实体类,接收map参数,执行增删改查,查询表中数据返回map结果.
+ * 在web应用表较少(10张以下),为了提高开发效率,简化程序构成,可以完全使用本控制器完成功能.
+ * 本控制器同时也可以和实体类控制器搭配使用,用来做多表关联查询.
+ */
+@Controller
+@RequestMapping("/common")//如果整个web应用不需要实体类,仅仅使用此控制器,那么这个可以去掉.
+public class CommonController {
+
+
+ @Resource
+ CommonService commonService;
+
+
+ //localhost:8080/common/article/add
+ @GetMapping("/article/add")
+ public String articleAdd(){
+
+ return "common_article_add";
+ }
+
+
+ //localhost:8080/common/article/save
+ @PostMapping("/article/save")
+ public String save(@RequestParam HashMap param, Model model){
+ commonService.insertArticle(param);
+ System.out.println(param.get("articleTitle"));
+ model.addAttribute("result",param);
+ return "show";
+ }
+
+
+
+ //localhost:8080/common/article/findArticleBy?id=1
+ @GetMapping("/article/findArticleBy")
+ public String findArticleBy(@RequestParam HashMap param, Model model){
+ HashMap result = commonService.findArticleBy(param);
+
+ model.addAttribute("result",result);
+ return "common_article_map_show";
+ }
+
+
+ //localhost:8080/common/article/delete/1
+ @GetMapping("/article/delete/{id}")
+ public String save(@PathVariable(value="id") Integer id,Model model){
+ commonService.deleteArticle(id);
+ return "show";
+ }
+
+
+
+}
diff --git a/articlehub/src/main/java/com/ah/controller/TestController.java b/articlehub/src/main/java/com/ah/controller/TestController.java
new file mode 100644
index 0000000..989fade
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/controller/TestController.java
@@ -0,0 +1,26 @@
+package com.ah.controller;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+/**
+ * Created by jianyuchen on 2018/9/20.
+ */
+@Controller
+@RequestMapping("/test")
+public class TestController {
+
+ @GetMapping("/hello/{name}")
+ public String hello(@PathVariable("name") String name,Model model){
+ model.addAttribute("name",name);
+
+ System.out.println(name);
+
+ return "index";
+ }
+}
diff --git a/articlehub/src/main/java/com/ah/dao/ArticleDao.java b/articlehub/src/main/java/com/ah/dao/ArticleDao.java
new file mode 100644
index 0000000..c99d81b
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/dao/ArticleDao.java
@@ -0,0 +1,11 @@
+package com.ah.dao;
+
+import com.ah.model.Article;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+public interface ArticleDao {
+
+ int insertArticle(Article article);
+}
diff --git a/articlehub/src/main/java/com/ah/dao/CommonDao.java b/articlehub/src/main/java/com/ah/dao/CommonDao.java
new file mode 100644
index 0000000..cfb3a4d
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/dao/CommonDao.java
@@ -0,0 +1,15 @@
+package com.ah.dao;
+
+
+import java.util.HashMap;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+public interface CommonDao {
+
+ int insertArticle(HashMap data);
+ HashMap findArticleBy(HashMap data);
+
+ int deleteArticle(Integer id);
+}
diff --git a/articlehub/src/main/java/com/ah/model/Article.java b/articlehub/src/main/java/com/ah/model/Article.java
new file mode 100644
index 0000000..162ec11
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/model/Article.java
@@ -0,0 +1,28 @@
+package com.ah.model;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+@Data
+public class Article {
+
+ private String id;
+ private String articleClass;
+ private String articleTitle;
+ private String articleRemark;
+ private String articleContent;
+ private String articleFrom;
+ private Date articlePublishDate;
+ private Integer status;
+ private Integer readCount;
+ private Date creationTime;
+ private Date modificationTime;
+
+
+
+
+
+}
diff --git a/articlehub/src/main/java/com/ah/model/Common.java b/articlehub/src/main/java/com/ah/model/Common.java
new file mode 100644
index 0000000..4158f24
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/model/Common.java
@@ -0,0 +1,12 @@
+package com.ah.model;
+
+import lombok.Data;
+
+/**
+ * Created by jianyuchen on 2018/9/22.
+ */
+
+@Data
+public class Common {
+
+}
diff --git a/articlehub/src/main/java/com/ah/service/ArticleService.java b/articlehub/src/main/java/com/ah/service/ArticleService.java
new file mode 100644
index 0000000..edeb0fd
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/service/ArticleService.java
@@ -0,0 +1,11 @@
+package com.ah.service;
+
+import com.ah.model.Article;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+public interface ArticleService {
+
+ void insertArticle(Article article);
+}
diff --git a/articlehub/src/main/java/com/ah/service/CommonService.java b/articlehub/src/main/java/com/ah/service/CommonService.java
new file mode 100644
index 0000000..6b09336
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/service/CommonService.java
@@ -0,0 +1,15 @@
+package com.ah.service;
+
+
+import java.util.HashMap;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+public interface CommonService {
+
+ void insertArticle(HashMap data);
+
+ HashMap findArticleBy(HashMap data);
+ void deleteArticle(Integer id);
+}
diff --git a/articlehub/src/main/java/com/ah/service/impl/ArticleServiceImpl.java b/articlehub/src/main/java/com/ah/service/impl/ArticleServiceImpl.java
new file mode 100644
index 0000000..99835d9
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/service/impl/ArticleServiceImpl.java
@@ -0,0 +1,25 @@
+package com.ah.service.impl;
+
+import com.ah.dao.ArticleDao;
+import com.ah.model.Article;
+import com.ah.service.ArticleService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+@Service
+public class ArticleServiceImpl implements ArticleService {
+
+ @Resource
+ ArticleDao articleDao;
+
+ public void insertArticle(Article article){
+
+ articleDao.insertArticle(article);
+
+ }
+
+}
diff --git a/articlehub/src/main/java/com/ah/service/impl/CommonServiceImpl.java b/articlehub/src/main/java/com/ah/service/impl/CommonServiceImpl.java
new file mode 100644
index 0000000..c7c430a
--- /dev/null
+++ b/articlehub/src/main/java/com/ah/service/impl/CommonServiceImpl.java
@@ -0,0 +1,34 @@
+package com.ah.service.impl;
+
+import com.ah.dao.CommonDao;
+import com.ah.service.CommonService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+
+/**
+ * Created by jianyuchen on 2018/9/21.
+ */
+@Service
+public class CommonServiceImpl implements CommonService {
+
+ @Resource
+ CommonDao commonDao;
+
+ public void insertArticle(HashMap data){
+ commonDao.insertArticle(data);
+ }
+
+
+ public HashMap findArticleBy(HashMap data){
+ HashMap result = commonDao.findArticleBy(data);
+
+ return result;
+ }
+
+
+ public void deleteArticle(Integer id){
+ commonDao.deleteArticle(id);
+ }
+}
diff --git a/articlehub/src/main/resources/.DS_Store b/articlehub/src/main/resources/.DS_Store
new file mode 100644
index 0000000..f54b285
Binary files /dev/null and b/articlehub/src/main/resources/.DS_Store differ
diff --git a/articlehub/src/main/resources/applicationContext.xml b/articlehub/src/main/resources/applicationContext.xml
new file mode 100644
index 0000000..a52a9a9
--- /dev/null
+++ b/articlehub/src/main/resources/applicationContext.xml
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/resources/config.properties b/articlehub/src/main/resources/config.properties
new file mode 100644
index 0000000..7469841
--- /dev/null
+++ b/articlehub/src/main/resources/config.properties
@@ -0,0 +1,9 @@
+jdbc.driverClassName=com.mysql.jdbc.Driver
+jdbc.url=jdbc:mysql://localhost:3306/ah?useSSL=false
+jdbc.username=root
+jdbc.password=root
+jdbc.initialSize=10
+jdbc.maxTotal=255
+jdbc.maxIdle=2
+jdbc.maxWaitMillis=120000
+
diff --git a/articlehub/src/main/resources/log4j2.xml b/articlehub/src/main/resources/log4j2.xml
new file mode 100644
index 0000000..cc07667
--- /dev/null
+++ b/articlehub/src/main/resources/log4j2.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/resources/mapper/Article.xml b/articlehub/src/main/resources/mapper/Article.xml
new file mode 100644
index 0000000..7b4dc7f
--- /dev/null
+++ b/articlehub/src/main/resources/mapper/Article.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+ INSERT INTO article (id,article_class,article_title,article_remark,article_content,article_from,article_publish_date,status,read_count)
+ VALUES (null,#{articleClass},#{articleTitle},#{articleRemark},#{articleContent},#{articleFrom},#{articlePublishDate},0,0)
+
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/resources/mapper/Common.xml b/articlehub/src/main/resources/mapper/Common.xml
new file mode 100644
index 0000000..c9b7fd8
--- /dev/null
+++ b/articlehub/src/main/resources/mapper/Common.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+ INSERT INTO article (id,article_class,article_title,article_remark,article_content,article_from,article_publish_date,status,read_count)
+ VALUES (null,#{articleClass},#{articleTitle},#{articleRemark},#{articleContent},#{articleFrom},#{articlePublishDate},0,0)
+
+
+
+
+
+
+ DELETE FROM article WHERE id=#{id}
+
+
+
diff --git a/articlehub/src/main/resources/spring-mvc.xml b/articlehub/src/main/resources/spring-mvc.xml
new file mode 100644
index 0000000..51d6fdc
--- /dev/null
+++ b/articlehub/src/main/resources/spring-mvc.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/resources/spring-mybatis.xml b/articlehub/src/main/resources/spring-mybatis.xml
new file mode 100644
index 0000000..de20836
--- /dev/null
+++ b/articlehub/src/main/resources/spring-mybatis.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/webapp/403.html b/articlehub/src/main/webapp/403.html
new file mode 100644
index 0000000..c3d8345
--- /dev/null
+++ b/articlehub/src/main/webapp/403.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 403
+
+
+ 403 - 资源不可用!
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/webapp/404.html b/articlehub/src/main/webapp/404.html
new file mode 100644
index 0000000..a68eb25
--- /dev/null
+++ b/articlehub/src/main/webapp/404.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 404
+
+
+ 404 - 页面未找到!
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/webapp/500.html b/articlehub/src/main/webapp/500.html
new file mode 100644
index 0000000..892232d
--- /dev/null
+++ b/articlehub/src/main/webapp/500.html
@@ -0,0 +1,10 @@
+
+
+
+
+ 500
+
+
+ 500 - 服务器内部错误!
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/webapp/WEB-INF/view/article_add.jsp b/articlehub/src/main/webapp/WEB-INF/view/article_add.jsp
new file mode 100644
index 0000000..62239fa
--- /dev/null
+++ b/articlehub/src/main/webapp/WEB-INF/view/article_add.jsp
@@ -0,0 +1,30 @@
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+
+
+
+
+
+
+
+
+
+ new article
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/webapp/WEB-INF/view/common_article_add.jsp b/articlehub/src/main/webapp/WEB-INF/view/common_article_add.jsp
new file mode 100644
index 0000000..e25dcb3
--- /dev/null
+++ b/articlehub/src/main/webapp/WEB-INF/view/common_article_add.jsp
@@ -0,0 +1,30 @@
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+
+
+
+
+
+
+
+
+
+ common_article_add
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/webapp/WEB-INF/view/common_article_map_show.jsp b/articlehub/src/main/webapp/WEB-INF/view/common_article_map_show.jsp
new file mode 100644
index 0000000..53ee7de
--- /dev/null
+++ b/articlehub/src/main/webapp/WEB-INF/view/common_article_map_show.jsp
@@ -0,0 +1,38 @@
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/webapp/WEB-INF/view/show.jsp b/articlehub/src/main/webapp/WEB-INF/view/show.jsp
new file mode 100644
index 0000000..b664a27
--- /dev/null
+++ b/articlehub/src/main/webapp/WEB-INF/view/show.jsp
@@ -0,0 +1,38 @@
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/articlehub/src/main/webapp/WEB-INF/web.xml b/articlehub/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..3ca36f9
--- /dev/null
+++ b/articlehub/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,128 @@
+
+
+
+
+
+web.xml
+
+
+ index.html
+ home.html
+ index.htm
+ index.jsp
+ home.jsp
+
+
+
+ 403
+ /403.html
+
+
+
+ 404
+ /404.html
+
+
+
+ 500
+ /500.html
+
+
+
+
+ characterEncodingFilter
+ org.springframework.web.filter.CharacterEncodingFilter
+
+ encoding
+ utf-8
+
+
+
+ characterEncodingFilter
+ *
+
+
+
+
+ default
+ *.js
+ *.css
+ /doc/*
+ /images/*
+ /fonts/*
+ *.html
+
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
+
+ contextConfigLocation
+ classpath:applicationContext.xml
+
+
+
+
+
+ log4jConfiguration
+ classpath:log4j2.xml
+
+
+ org.apache.logging.log4j.web.Log4jServletContextListener
+
+
+
+ log4jServletFilter
+ org.apache.logging.log4j.web.Log4jServletFilter
+
+
+ log4jServletFilter
+ /*
+ REQUEST
+ FORWARD
+ INCLUDE
+ ERROR
+
+
+
+
+
+
+ manager
+ org.springframework.web.servlet.DispatcherServlet
+
+ springmvc
+ contextConfigLocation
+ classpath:spring-mvc.xml
+
+ 1
+
+
+ manager
+ /
+
+
+
+
+ HiddenHttpMethodFilter
+ org.springframework.web.filter.HiddenHttpMethodFilter
+
+
+ HiddenHttpMethodFilter
+ /
+
+
+
+
+
+
+ 30
+
+
+
\ No newline at end of file
diff --git a/articlehub/src/main/webapp/index.jsp b/articlehub/src/main/webapp/index.jsp
new file mode 100644
index 0000000..c50ab55
--- /dev/null
+++ b/articlehub/src/main/webapp/index.jsp
@@ -0,0 +1,19 @@
+<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
+
+
+
+
+
+
+
+
+
+ new article
+
+
+
+
+ welcome!
+
+
+