├── .classpath
├── .gitignore
├── .project
├── .settings
├── .jsdtscope
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
├── org.eclipse.m2e.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.wst.common.project.facet.core.xml
├── org.eclipse.wst.jsdt.ui.superType.container
├── org.eclipse.wst.jsdt.ui.superType.name
└── org.eclipse.wst.validation.prefs
├── README.md
├── pom.xml
└── src
└── main
├── config
└── code_checker
│ ├── micaicms_checkstyle_v1.0.xml
│ └── micaicms_findbugs_v1.0.xml
├── filters
├── dev.properties
├── prd.properties
├── simu.properties
└── test.properties
├── java
└── org
│ └── micaicms
│ └── ssmb
│ ├── domain
│ ├── po
│ │ ├── ProjectPO.java
│ │ └── package-info.java
│ └── vo
│ │ ├── ProjectVO.java
│ │ └── package-info.java
│ ├── infrastructure
│ └── dao
│ │ ├── ProjectDao.java
│ │ ├── imp
│ │ ├── ProjectDaoImp.java
│ │ └── package-info.java
│ │ └── package-info.java
│ ├── service
│ ├── ProjectService.java
│ ├── imp
│ │ ├── ProjectServiceImp.java
│ │ └── package-info.java
│ └── package-info.java
│ ├── util
│ ├── PageUtil.java
│ └── package-info.java
│ └── web
│ ├── ProjectAction.java
│ └── package-info.java
├── resources
├── generatorConfig.xml
├── log4j2.xml
├── sample
│ └── project
│ │ └── mybatis
│ │ └── mapper
│ │ └── ProjectMapper.xml
└── spring
│ ├── business-config.xml
│ ├── data-access.properties
│ ├── datasource-config.xml
│ ├── mvc-core-config.xml
│ └── mvc-view-config.xml
└── webapp
└── WEB-INF
├── pages
├── error
│ └── error.jsp
├── index.jsp
├── sample
│ ├── newProject.jsp
│ ├── project.jsp
│ └── projectList.jsp
└── styles
│ └── styles.jsp
└── web.xml
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | micaicms-ssmb
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.jsdt.core.javascriptValidator
10 |
11 |
12 |
13 |
14 | org.eclipse.jdt.core.javabuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.wst.common.project.facet.core.builder
20 |
21 |
22 |
23 |
24 | org.eclipse.m2e.core.maven2Builder
25 |
26 |
27 |
28 |
29 | org.eclipse.wst.validation.validationbuilder
30 |
31 |
32 |
33 |
34 | org.springframework.ide.eclipse.core.springbuilder
35 |
36 |
37 |
38 |
39 |
40 | org.springframework.ide.eclipse.core.springnature
41 | org.eclipse.jem.workbench.JavaEMFNature
42 | org.eclipse.wst.common.modulecore.ModuleCoreNature
43 | org.eclipse.jdt.core.javanature
44 | org.eclipse.m2e.core.maven2Nature
45 | org.eclipse.wst.common.project.facet.core.nature
46 | org.eclipse.wst.jsdt.core.jsNature
47 |
48 |
49 |
--------------------------------------------------------------------------------
/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/resources=UTF-8
4 | encoding//src/test/java=UTF-8
5 | encoding//src/test/resources=UTF-8
6 | encoding/=UTF-8
7 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4 | org.eclipse.jdt.core.compiler.compliance=1.8
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
8 | org.eclipse.jdt.core.compiler.source=1.8
9 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/.settings/org.eclipse.wst.validation.prefs:
--------------------------------------------------------------------------------
1 | disabled=06target
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 基于Spring,SpringMVC,MyBatis,bootstrap,jquery,jstl等集成的基础开发框架!
2 |
3 | 项目介绍:
4 | 1.软件架构组成: Maven Spring SpringMVC MyBatis jquery bootstrap jsp
5 |
6 | 2.软件集成依赖: Spring SpringMVC MyBatis Log4j jstl checkstyle findbugs
7 |
8 | 3.该项目中继承的父项目请看: https://github.com/sxdtzhaoxinguo/micaicms-pom
9 |
10 | 4.熟悉git的操作
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 |
6 | org.micaicms
7 | micaicms-pom
8 | 1.0
9 |
10 |
11 | micaicms-ssmb
12 | 0.0.1-SNAPSHOT
13 | war
14 |
15 |
16 |
17 | UTF-8
18 |
19 |
20 |
21 |
22 |
23 |
24 | javax.servlet
25 | javax.servlet-api
26 |
27 |
28 |
29 | javax.servlet.jsp
30 | jsp-api
31 |
32 |
33 |
34 | javax.servlet
35 | jstl
36 | runtime
37 |
38 |
39 | taglibs
40 | standard
41 | 1.1.2
42 |
43 |
44 |
45 | org.springframework
46 | spring-webmvc
47 |
48 |
49 |
50 | org.codehaus.jackson
51 | jackson-mapper-asl
52 |
53 |
54 | com.fasterxml.jackson.core
55 | jackson-databind
56 |
57 |
58 |
59 |
60 | org.springframework
61 | spring-context
62 |
63 |
64 | org.springframework
65 | spring-jdbc
66 |
67 |
68 | org.springframework
69 | spring-tx
70 |
71 |
72 | org.springframework
73 | spring-aop
74 |
75 |
76 | org.aspectj
77 | aspectjweaver
78 |
79 |
80 |
81 |
82 |
83 | org.apache.tomcat
84 | tomcat-jdbc
85 | compile
86 |
87 |
88 |
89 | org.mybatis
90 | mybatis
91 |
92 |
93 |
94 | com.github.miemiedev
95 | mybatis-paginator
96 |
97 |
98 |
99 | org.mybatis
100 | mybatis-spring
101 |
102 |
103 |
104 | mysql
105 | mysql-connector-java
106 |
107 |
108 |
109 |
110 | org.slf4j
111 | slf4j-api
112 |
113 |
114 | org.apache.logging.log4j
115 | log4j-slf4j-impl
116 |
117 |
118 | org.apache.logging.log4j
119 | log4j-core
120 |
121 |
122 | org.apache.logging.log4j
123 | log4j-web
124 |
125 |
126 |
127 |
128 | org.springframework
129 | spring-test
130 |
131 |
132 | junit
133 | junit
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | dev
142 |
143 | true
144 |
145 |
146 | dev
147 |
148 |
149 |
150 | ${basedir}/src/main/filters/dev.properties
151 |
152 |
153 |
154 |
155 |
156 | test
157 |
158 | test
159 |
160 |
161 |
162 | ${basedir}/src/main/filters/test.properties
163 |
164 |
165 |
166 |
167 |
168 | simu
169 |
170 | simu
171 |
172 |
173 |
174 | ${basedir}/src/main/filters/simu.properties
175 |
176 |
177 |
178 |
179 |
180 | prd
181 |
182 | prd
183 |
184 |
185 |
186 | ${basedir}/src/main/filters/prd.properties
187 |
188 |
189 |
190 |
191 |
192 |
193 | micaicms-ssmb
194 |
195 |
196 | ${basedir}/src/main/resources
197 | true
198 |
199 |
200 |
201 |
202 |
203 |
204 | org.apache.maven.plugins
205 | maven-checkstyle-plugin
206 |
207 | ${basedir}/src/main/config/code_checker/micaicms_checkstyle_v1.0.xml
208 |
209 |
210 |
211 |
212 | org.codehaus.mojo
213 | findbugs-maven-plugin
214 |
215 | ${basedir}/src/main/config/code_checker/micaicms_findbugs_v1.0.xml
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 | micaicms
225 | Micaicms Repositories
226 | http://127.0.0.1:8081/nexus/content/groups/public/
227 |
228 | true
229 |
230 |
231 | true
232 |
233 |
234 |
235 |
236 |
--------------------------------------------------------------------------------
/src/main/config/code_checker/micaicms_checkstyle_v1.0.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
35 |
36 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
59 |
60 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
79 |
81 |
82 |
83 |
84 |
85 |
86 |
88 |
90 |
92 |
93 |
94 |
95 |
96 |
98 |
100 |
101 |
102 |
103 |
104 |
106 |
107 |
108 |
109 |
111 |
112 |
113 |
115 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
148 |
149 |
150 |
151 |
152 |
153 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
165 |
167 |
169 |
171 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
182 |
183 |
184 |
185 |
186 |
188 |
189 |
190 |
191 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
229 |
230 |
231 |
232 |
233 |
234 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
254 |
255 |
256 |
257 |
258 |
260 |
261 |
262 |
263 |
265 |
266 |
267 |
268 |
270 |
271 |
272 |
273 |
274 |
275 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
299 |
300 |
301 |
302 |
303 |
304 |
306 |
307 |
308 |
309 |
310 |
311 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
343 |
344 |
345 |
346 |
347 |
348 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
--------------------------------------------------------------------------------
/src/main/config/code_checker/micaicms_findbugs_v1.0.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
117 |
121 |
122 |
126 |
131 |
132 |
133 |
134 |
138 |
139 |
143 |
144 |
148 |
149 |
154 |
155 |
160 |
161 |
166 |
167 |
172 |
173 |
177 |
182 |
187 |
191 |
195 |
196 |
200 |
201 |
205 |
210 |
211 |
214 |
215 |
218 |
219 |
223 |
224 |
227 |
228 |
232 |
233 |
236 |
237 |
240 |
244 |
245 |
248 |
249 |
253 |
258 |
263 |
268 |
273 |
278 |
279 |
282 |
285 |
286 |
291 |
292 |
295 |
296 |
300 |
301 |
304 |
307 |
310 |
311 |
314 |
315 |
320 |
325 |
329 |
332 |
333 |
337 |
338 |
343 |
344 |
348 |
349 |
352 |
353 |
356 |
357 |
361 |
362 |
366 |
367 |
371 |
372 |
375 |
376 |
379 |
380 |
383 |
384 |
387 |
388 |
391 |
392 |
394 |
395 |
398 |
399 |
402 |
403 |
406 |
407 |
410 |
411 |
414 |
415 |
420 |
421 |
425 |
426 |
431 |
432 |
436 |
437 |
440 |
441 |
444 |
445 |
448 |
449 |
452 |
453 |
456 |
457 |
460 |
461 |
465 |
469 |
470 |
473 |
474 |
480 |
481 |
484 |
485 |
489 |
490 |
493 |
494 |
497 |
498 |
502 |
503 |
506 |
507 |
511 |
512 |
515 |
516 |
520 |
521 |
524 |
525 |
528 |
529 |
532 |
533 |
538 |
539 |
542 |
543 |
546 |
547 |
550 |
551 |
554 |
555 |
559 |
560 |
564 |
565 |
568 |
569 |
573 |
574 |
578 |
579 |
583 |
584 |
587 |
588 |
592 |
593 |
596 |
597 |
600 |
601 |
604 |
605 |
609 |
610 |
613 |
614 |
618 |
619 |
622 |
623 |
627 |
628 |
631 |
632 |
636 |
637 |
641 |
642 |
645 |
646 |
650 |
651 |
654 |
655 |
661 |
666 |
670 |
674 |
678 |
683 |
687 |
688 |
692 |
693 |
698 |
699 |
702 |
703 |
706 |
707 |
712 |
713 |
717 |
718 |
721 |
722 |
725 |
726 |
727 |
729 |
730 |
732 |
733 |
735 |
736 |
738 |
739 |
742 |
746 |
747 |
748 |
751 |
752 |
753 |
754 |
756 |
757 |
759 |
760 |
762 |
763 |
764 |
765 |
766 |
767 |
768 |
769 |
770 |
771 |
772 |
773 |
774 |
775 |
776 |
777 |
778 |
779 |
780 |
781 |
782 |
783 |
784 |
785 |
786 |
787 |
788 |
789 |
790 |
791 |
792 |
793 |
794 |
795 |
796 |
797 |
798 |
799 |
800 |
801 |
802 |
803 |
804 |
805 |
806 |
807 |
808 |
810 |
811 |
812 |
813 |
814 |
815 |
816 |
817 |
818 |
819 |
820 |
821 |
822 |
823 |
824 |
825 |
826 |
827 |
828 |
830 |
831 |
833 |
834 |
835 |
836 |
837 |
838 |
839 |
840 |
841 |
842 |
843 |
844 |
845 |
846 |
847 |
848 |
849 |
850 |
851 |
852 |
853 |
854 |
855 |
856 |
857 |
858 |
859 |
860 |
861 |
862 |
863 |
864 |
865 |
866 |
867 |
868 |
869 |
870 |
871 |
872 |
873 |
874 |
875 |
876 |
877 |
878 |
879 |
880 |
881 |
882 |
883 |
884 |
885 |
886 |
887 |
888 |
889 |
890 |
891 |
892 |
893 |
894 |
895 |
896 |
897 |
898 |
899 |
900 |
901 |
902 |
903 |
904 |
905 |
906 |
907 |
908 |
909 |
910 |
911 |
912 |
913 |
914 |
915 |
916 |
917 |
918 |
919 |
920 |
921 |
922 |
923 |
924 |
925 |
926 |
927 |
928 |
929 |
930 |
931 |
933 |
934 |
935 |
936 |
937 |
938 |
939 |
940 |
941 |
942 |
943 |
944 |
945 |
946 |
947 |
948 |
949 |
950 |
951 |
952 |
953 |
954 |
955 |
956 |
957 |
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 |
966 |
967 |
968 |
969 |
970 |
971 |
972 |
973 |
974 |
975 |
976 |
977 |
978 |
979 |
980 |
981 |
982 |
983 |
984 |
985 |
986 |
987 |
988 |
989 |
990 |
991 |
992 |
993 |
994 |
995 |
997 |
998 |
999 |
1000 |
1001 |
1002 |
1003 |
1004 |
1005 |
1006 |
1007 |
1008 |
1010 |
1011 |
1012 |
1013 |
1014 |
1015 |
1016 |
1017 |
1018 |
1019 |
1020 |
1021 |
1022 |
1023 |
1024 |
1025 |
1026 |
1027 |
1028 |
1029 |
1030 |
1031 |
1032 |
1033 |
1034 |
1035 |
1036 |
1037 |
1038 |
1039 |
1040 |
1041 |
1042 |
1043 |
1044 |
1045 |
1046 |
1047 |
1048 |
1049 |
1050 |
1051 |
1052 |
1053 |
1054 |
1055 |
1056 |
1057 |
1058 |
1059 |
1060 |
1061 |
1062 |
1063 |
1064 |
1065 |
1066 |
1067 |
1068 |
1069 |
1070 |
1071 |
1072 |
1073 |
1074 |
1075 |
1076 |
1077 |
1078 |
1080 |
1081 |
1082 |
1083 |
1084 |
1085 |
1086 |
1087 |
1088 |
1089 |
1090 |
1091 |
1092 |
1093 |
1094 |
1095 |
1096 |
1098 |
1099 |
1100 |
1101 |
1103 |
1105 |
1106 |
1107 |
1108 |
1109 |
1110 |
1111 |
1112 |
1113 |
1114 |
1115 |
1116 |
1117 |
1118 |
1119 |
1120 |
1121 |
1123 |
1124 |
1125 |
1126 |
1127 |
1128 |
1129 |
1130 |
1131 |
1132 |
1134 |
1135 |
1136 |
1137 |
1138 |
1139 |
1140 |
1141 |
1142 |
1143 |
1144 |
1145 |
1146 |
1147 |
1148 |
1149 |
1150 |
1151 |
1152 |
1153 |
1154 |
1155 |
1156 |
1157 |
1158 |
1159 |
1160 |
1161 |
1162 |
1163 |
1164 |
1165 |
1167 |
1168 |
1170 |
1172 |
1173 |
1174 |
1175 |
1176 |
1177 |
1178 |
1179 |
1180 |
1181 |
1182 |
1183 |
--------------------------------------------------------------------------------
/src/main/filters/dev.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClassName=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8
3 | jdbc.username=root
4 | jdbc.password=root
5 |
6 | jndiName = ${symbol_dollar}{jndiName}
--------------------------------------------------------------------------------
/src/main/filters/prd.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClassName=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8
3 | jdbc.username=root
4 | jdbc.password=prd
5 |
6 | jndiName = ${symbol_dollar}{jndiName}
--------------------------------------------------------------------------------
/src/main/filters/simu.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClassName=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8
3 | jdbc.username=root
4 | jdbc.password=simu
5 |
6 | jndiName = ${symbol_dollar}{jndiName}
--------------------------------------------------------------------------------
/src/main/filters/test.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClassName=com.mysql.jdbc.Driver
2 | jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8
3 | jdbc.username=root
4 | jdbc.password=test
5 |
6 | jndiName = ${symbol_dollar}{jndiName}
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/domain/po/ProjectPO.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectPO
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.domain.po;
8 |
9 | import java.io.Serializable;
10 |
11 | /**
12 | * PO样例
13 | * 该样例的对象为“项目”
14 | *
15 | * @author zhaoxg
16 | */
17 | public class ProjectPO implements Serializable {
18 | /**
19 | * 序列化id
20 | */
21 | private static final long serialVersionUID = 1L;
22 | /**
23 | * 项目id
24 | */
25 | private String prjId;
26 | /**
27 | * 项目名称
28 | */
29 | private String prjName;
30 | /**
31 | * 项目类型
32 | */
33 | private int prjType;
34 |
35 | /**
36 | * @return Returns the prjId.
37 | */
38 | public String getPrjId() {
39 | return prjId;
40 | }
41 |
42 | /**
43 | * @param prjId
44 | * The prjId to set.
45 | */
46 | public void setPrjId(String prjId) {
47 | this.prjId = prjId;
48 | }
49 |
50 | /**
51 | * @return Returns the prjName.
52 | */
53 | public String getPrjName() {
54 | return prjName;
55 | }
56 |
57 | /**
58 | * @param prjName
59 | * The prjName to set.
60 | */
61 | public void setPrjName(String prjName) {
62 | this.prjName = prjName;
63 | }
64 |
65 | /**
66 | * @return Returns the prjType.
67 | */
68 | public int getPrjType() {
69 | return prjType;
70 | }
71 |
72 | /**
73 | * @param prjType
74 | * The prjType to set.
75 | */
76 | public void setPrjType(int prjType) {
77 | this.prjType = prjType;
78 | }
79 |
80 | }
81 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/domain/po/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | *Copyright ® 迷彩CMS平台版权所有。
3 | * 实体类
4 | * @author zhaoxg
5 | */
6 | package org.micaicms.ssmb.domain.po;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/domain/vo/ProjectVO.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectVO
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.domain.vo;
8 |
9 | /**
10 | * VO样例
11 | * VO样例 <功能详细描述>
12 | * @author zhaoxg
13 | */
14 | public class ProjectVO {
15 |
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/domain/vo/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | *Copyright ® 迷彩CMS平台版权所有。
3 | * 值对象(数据传输类)
4 | *
5 | */
6 | package org.micaicms.ssmb.domain.vo;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/infrastructure/dao/ProjectDao.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectDao
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.infrastructure.dao;
8 |
9 | import java.util.List;
10 | import java.util.Map;
11 |
12 | import org.apache.ibatis.session.RowBounds;
13 | import org.micaicms.ssmb.domain.po.ProjectPO;
14 | import org.springframework.stereotype.Component;
15 |
16 | import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
17 |
18 | /**
19 | * TODO <功能简述>
20 | * TODO <功能详细描述>
21 | * @author zhaoxg
22 | */
23 | @Component
24 | public interface ProjectDao {
25 |
26 |
27 | /**
28 | *
29 | * 新增记录
30 | * @param po
31 | * @return
32 | */
33 | public int insertProject(ProjectPO po);
34 | /**
35 | *
36 | * 更新记录
37 | * @param po
38 | * @return
39 | */
40 | public int updateProjectById(ProjectPO po);
41 |
42 | /**
43 | *
44 | * 查询列表
45 | * @param po
46 | * @return
47 | */
48 | public List selectProject(Map map,PageBounds pageBounds);
49 |
50 | /**
51 | *
52 | * 根据ID获取一个对象
53 | * @param po
54 | * @return
55 | */
56 | public ProjectPO selectProjectById(String id);
57 |
58 | /**
59 | *
60 | * 根据ID删除记录
61 | * @param id
62 | * @return
63 | */
64 | public int deleteProjectById(String id);
65 |
66 | public ProjectPO selectObject();
67 | }
68 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/infrastructure/dao/imp/ProjectDaoImp.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectImp
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.infrastructure.dao.imp;
8 |
9 | /**
10 | * TODO <功能简述>
11 | * TODO <功能详细描述>
12 | * @author zhaoxg
13 | */
14 | public class ProjectDaoImp {
15 |
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/infrastructure/dao/imp/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 数据操作层实现
4 | */
5 | package org.micaicms.ssmb.infrastructure.dao.imp;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/infrastructure/dao/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 数据操作层接口
4 | */
5 | package org.micaicms.ssmb.infrastructure.dao;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/service/ProjectService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectService
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.service;
8 |
9 | import java.util.List;
10 | import java.util.Map;
11 |
12 | import org.micaicms.ssmb.domain.po.ProjectPO;
13 |
14 | /**
15 | * TODO <功能简述>
16 | * TODO <功能详细描述>
17 | * @author zhaoxg
18 | */
19 | public interface ProjectService {
20 | /**
21 | *
22 | * 新增记录
23 | * @param po
24 | * @return
25 | */
26 | public int insertProject(ProjectPO po)throws Exception;
27 | /**
28 | *
29 | * 更新记录
30 | * @param po
31 | * @return
32 | */
33 | public int updateProjectById(ProjectPO po)throws Exception;
34 |
35 | /**
36 | *
37 | * 查询列表
38 | * @param po
39 | * @return
40 | */
41 | public List getProjectList(Map map,int pageNo,int pageSize)throws Exception;
42 |
43 | /**
44 | *
45 | * 根据ID获取一个对象
46 | * @param po
47 | * @return
48 | */
49 | public ProjectPO getProjectById(String id)throws Exception;
50 |
51 | /**
52 | *
53 | * 根据ID删除记录
54 | * @param id
55 | * @return
56 | */
57 | public int deleteProjectById(String id)throws Exception;
58 |
59 | public ProjectPO selectObject()throws Exception;
60 | }
61 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/service/imp/ProjectServiceImp.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectServiceImp
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.service.imp;
8 |
9 | import java.util.List;
10 | import java.util.Map;
11 |
12 | import org.micaicms.ssmb.domain.po.ProjectPO;
13 | import org.micaicms.ssmb.infrastructure.dao.ProjectDao;
14 | import org.micaicms.ssmb.service.ProjectService;
15 | import org.springframework.beans.factory.annotation.Autowired;
16 | import org.springframework.stereotype.Service;
17 | import org.apache.ibatis.session.RowBounds;
18 |
19 | import com.github.miemiedev.mybatis.paginator.domain.Order;
20 | import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
21 | import com.github.miemiedev.mybatis.paginator.domain.PageList;
22 |
23 | /**
24 | * TODO <功能简述>
25 | * TODO <功能详细描述>
26 | * @author zhaoxg
27 | */
28 | @Service
29 | public class ProjectServiceImp implements ProjectService {
30 |
31 | @Autowired(required=false)
32 | private ProjectDao projectDao;
33 |
34 | public int insertProject(ProjectPO po) throws Exception {
35 | int rtn = 0;
36 | rtn = projectDao.insertProject(po);
37 | return rtn;
38 | }
39 |
40 | public int updateProjectById(ProjectPO po) throws Exception {
41 | int rtn = 0;
42 | rtn = projectDao.updateProjectById(po);
43 | return rtn;
44 | }
45 |
46 | public List getProjectList(Map map,int pageNo,int pageSize) throws Exception {
47 | String orderStr = "prjid.desc,prjname asc";
48 | PageBounds pageBounds = new PageBounds(pageNo,pageSize);
49 | // PageBounds pageBounds = new PageBounds(pageNo,pageSize,Order.formString(orderStr));
50 | List list = projectDao.selectProject(map, pageBounds);
51 |
52 | return list;
53 | }
54 |
55 | public ProjectPO getProjectById(String id) throws Exception {
56 | ProjectPO project = projectDao.selectProjectById(id);
57 | return project;
58 | }
59 |
60 | public int deleteProjectById(String id) throws Exception {
61 | int rtn = 0;
62 | rtn = projectDao.deleteProjectById(id);
63 | return rtn;
64 | }
65 |
66 | public ProjectPO selectObject() throws Exception {
67 | ProjectPO project = projectDao.selectObject();
68 | return project;
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/service/imp/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 服务层实现,用于实现业务方法
4 | *
5 | */
6 | package org.micaicms.ssmb.service.imp;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/service/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 服务层接口,用于定义各种业务方法
4 | *
5 | */
6 | package org.micaicms.ssmb.service;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/util/PageUtil.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: PageUtil
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 | package org.micaicms.ssmb.util;
7 |
8 | import java.util.List;
9 |
10 | /**
11 | * TODO <功能简述>
12 | * TODO <功能详细描述>
13 | * @author zhaoxg
14 | */
15 | public class PageUtil {
16 |
17 | private int recordCount; //总记录数
18 | private int pageNo=1; //当前页数
19 | private int pageCount; //总页数
20 | private int firstResult=0; //起始记录数
21 | private int pageSize=25; //每页显示记录数,默认为25
22 | private int firstPage=1; //首页
23 | private int prePage; //前一页
24 | private int nextPage; //下一页
25 | private int lastPage; //末页
26 | private List listdata; //当前查询的记录集合
27 |
28 |
29 | public int getRecordCount() {
30 | return recordCount;
31 | }
32 | public void setRecordCount(int recordCount) {
33 | this.recordCount = recordCount;
34 | if(this.recordCount==0)
35 | this.pageCount=1;
36 | else if(this.recordCount%this.pageSize>0)
37 | this.pageCount=this.recordCount/this.pageSize+1;
38 | else
39 | this.pageCount=this.recordCount/this.pageSize;
40 | }
41 | public int getFirstResult() {
42 | firstResult = pageSize*(pageNo-1);
43 | return firstResult;
44 | }
45 | public void setFirstResult(int firstResult) {
46 | this.firstResult = firstResult;
47 | }
48 | public int getPageNo() {
49 | return pageNo;
50 | }
51 | public void setPageNo(int pageNo) {
52 | this.pageNo = pageNo;
53 | }
54 | public int getPageCount() {
55 | return pageCount;
56 | }
57 | public void setPageCount(int pageCount) {
58 | this.pageCount = pageCount;
59 | }
60 | public int getPageSize() {
61 | return pageSize;
62 | }
63 | public void setPageSize(int pageSize) {
64 | this.pageSize = pageSize;
65 | }
66 | public List getListdata() {
67 | return listdata;
68 | }
69 | public void setListdata(List listdata) {
70 | this.listdata = listdata;
71 | }
72 | public int getFirstPage() {
73 | return firstPage;
74 | }
75 | public void setFirstPage(int firstPage) {
76 | this.firstPage = firstPage;
77 | }
78 | public int getPrePage() {
79 | return prePage;
80 | }
81 | public void setPrePage(int prePage) {
82 | this.prePage = prePage;
83 | }
84 | public int getNextPage() {
85 | nextPage = pageNo+1;
86 | return nextPage;
87 | }
88 | public void setNextPage(int nextPage) {
89 | this.nextPage = nextPage;
90 | }
91 | public int getLastPage() {
92 | lastPage = pageCount;
93 | return lastPage;
94 | }
95 | public void setLastPage(int lastPage) {
96 | this.lastPage = lastPage;
97 | }
98 |
99 | }
100 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/util/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 工具类层
4 | *
5 | */
6 | package org.micaicms.ssmb.util;
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/web/ProjectAction.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 类名: ProjectAction
4 | * 创建人: zhaoxg 创建时间: 2015年3月16日
5 | */
6 |
7 | package org.micaicms.ssmb.web;
8 |
9 | import java.util.ArrayList;
10 | import java.util.HashMap;
11 | import java.util.List;
12 | import java.util.Map;
13 |
14 | import javax.servlet.http.HttpServletRequest;
15 | import javax.servlet.http.HttpServletResponse;
16 |
17 | import org.micaicms.ssmb.domain.po.ProjectPO;
18 | import org.micaicms.ssmb.service.ProjectService;
19 | import org.springframework.beans.factory.annotation.Autowired;
20 | import org.springframework.stereotype.Controller;
21 | import org.springframework.web.bind.annotation.ModelAttribute;
22 | import org.springframework.web.bind.annotation.RequestMapping;
23 | import org.springframework.web.bind.annotation.RequestParam;
24 | import org.springframework.web.bind.annotation.ResponseBody;
25 | import org.springframework.web.servlet.ModelAndView;
26 |
27 |
28 | /**
29 | * 控制器
30 | * 控制器,负责后台业务逻辑功能的调用,与前端页面的跳转
31 | *
32 | * @author zhaoxg
33 | */
34 | @Controller
35 | @RequestMapping("/project")
36 | public class ProjectAction {
37 |
38 | @Autowired
39 | ProjectService projectService;
40 |
41 | /**
42 | * 新建
43 | *
44 | * @param request
45 | * @param response
46 | * @return
47 | */
48 | @RequestMapping("/newProject")
49 | public ModelAndView newProject(HttpServletRequest request,
50 | HttpServletResponse response) {
51 | return new ModelAndView("sample/newProject");
52 | }
53 |
54 | /**
55 | * 保存
56 | *
57 | * @param projectPO
58 | * @return
59 | */
60 | @RequestMapping("/save")
61 | public ModelAndView Add(@ModelAttribute("project") ProjectPO projectPO) {
62 | try {
63 | projectService.insertProject(projectPO);
64 | } catch (Exception e) {
65 | e.printStackTrace();
66 | }
67 | return new ModelAndView("redirect:/project/list");
68 | }
69 |
70 | /**
71 | * 查询
72 | *
73 | * @param request
74 | * @param response
75 | * @return
76 | */
77 | @RequestMapping("/list")
78 | public ModelAndView projectList(HttpServletRequest request,
79 | HttpServletResponse response) {
80 | List projectList = new ArrayList();
81 | // PageList pageList = new PageList();
82 | try {
83 | Map map = new HashMap();
84 | // map.put("prjName", "软件");
85 | projectList = projectService.getProjectList(map, 1, 20);
86 | // pageList =
87 | // (PageList)projectService.getProjectList(map,1,5);
88 | } catch (Exception e) {
89 | // TODO Auto-generated catch block
90 | e.printStackTrace();
91 | }
92 | ModelAndView mv = new ModelAndView("sample/projectList");
93 | mv.addObject("projectList", projectList);
94 | return mv;
95 | }
96 |
97 | /**
98 | * 编辑
99 | *
100 | * @param request
101 | * @param response
102 | * @param prjId
103 | * @return
104 | */
105 | @RequestMapping("/editProject")
106 | public ModelAndView project(HttpServletRequest request,
107 | HttpServletResponse response, @RequestParam("prjId") String prjId) {
108 | ProjectPO projectPO = new ProjectPO();
109 | try {
110 | projectPO = projectService.getProjectById(prjId);
111 | } catch (Exception e) {
112 | e.printStackTrace();
113 | }
114 | return new ModelAndView("sample/project", "projectPO", projectPO);
115 | }
116 |
117 | /**
118 | * 更新
119 | *
120 | * @param request
121 | * @param response
122 | * @param projectPO
123 | * @return
124 | */
125 | @RequestMapping("/updateProject")
126 | public ModelAndView updateProject(HttpServletRequest request,
127 | HttpServletResponse response,
128 | @ModelAttribute("project") ProjectPO projectPO) {
129 | try {
130 | projectService.updateProjectById(projectPO);
131 | } catch (Exception e) {
132 | e.printStackTrace();
133 | }
134 | return new ModelAndView("redirect:/project/list");
135 | }
136 |
137 | /**
138 | * 删除
139 | *
140 | * @param request
141 | * @param response
142 | * @return
143 | */
144 | @RequestMapping("/delete")
145 | public ModelAndView deleteProject(HttpServletRequest request,
146 | HttpServletResponse response, @RequestParam("prjId") String prjId) {
147 | try {
148 | projectService.deleteProjectById(prjId);
149 | } catch (Exception e) {
150 | e.printStackTrace();
151 | }
152 | return new ModelAndView("redirect:/project/list");
153 | }
154 |
155 | // 返回结果不会被解析为跳转路径,而是直接写入HTTP response body中
156 | @RequestMapping("/resp")
157 | @ResponseBody
158 | public String checkNO(ProjectPO projectPO) {
159 | return "checkNO";
160 | }
161 |
162 | }
163 |
--------------------------------------------------------------------------------
/src/main/java/org/micaicms/ssmb/web/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright ® 迷彩CMS平台版权所有。
3 | * 控制层,用于实现业务方法的调用与页面的跳转
4 | *
5 | */
6 | package org.micaicms.ssmb.web;
--------------------------------------------------------------------------------
/src/main/resources/generatorConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
20 |
21 |
23 |
24 |
26 |
27 |
32 |
33 |
--------------------------------------------------------------------------------
/src/main/resources/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | %d{yyyy-MM-dd HH:mm:ss z} %-5level %class{36} %L %M - %msg%xEx%n
7 | D:/publicmodule_logs
8 | ${basePath}/publicmodule.log
9 | ${basePath}/%d{yyyy-MM-dd}-%i.log.zip
10 |
11 | 10M
12 |
13 | debug
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/src/main/resources/sample/project/mybatis/mapper/ProjectMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | and prjname like concat('%',#prjName,'%')
19 |
20 |
21 | and prjtype=#{prjType,jdbcType=VARCHAR}
22 |
23 |
24 |
25 |
26 |
27 | insert into project
28 |
29 | prjid,prjName,prjType
30 |
31 |
32 | #{prjId,jdbcType=VARCHAR},#{prjName,jdbcType=VARCHAR},#{prjType,jdbcType=VARCHAR}
33 |
34 |
35 |
36 |
40 |
41 |
47 |
48 |
52 |
53 |
57 |
58 |
59 | delete from project
60 | where prjid = #{prjId,jdbcType=VARCHAR}
61 |
62 |
63 |
64 | update project
65 |
66 |
67 | prjName= #{prjName,jdbcType=VARCHAR},
68 |
69 |
70 | prjType= #{prjType,jdbcType=VARCHAR},
71 |
72 |
73 | where prjid = #{prjId,jdbcType=VARCHAR}
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/main/resources/spring/business-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
21 |
22 |
23 |
24 |
25 | classpath:sample/*/mybatis/mapper/*Mapper.xml
26 |
27 |
28 |
29 |
30 |
31 |
33 |
35 |
36 |
37 |
38 |
39 |
40 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/main/resources/spring/data-access.properties:
--------------------------------------------------------------------------------
1 | jdbc.driverClassName=${connection.driver_class}
2 | jdbc.url=${connection.url}
3 | jdbc.username=${connection.username}
4 | jdbc.password=${connection.password}
5 |
6 | jndiName = ${symbol_dollar}{jndiName}
--------------------------------------------------------------------------------
/src/main/resources/spring/datasource-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
23 |
24 |
32 |
33 |
--------------------------------------------------------------------------------
/src/main/resources/spring/mvc-core-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/main/resources/spring/mvc-view-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
12 |
13 |
14 |
15 |
16 |
17 |
22 |
23 |
24 |
25 |
26 |
28 |
29 |
30 |
31 |
32 |
34 |
35 |
36 |
37 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/error/error.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 |
6 |
7 | 错误页面
8 |
9 |
10 | 系统错误,请于系统管理员联系
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 |
4 |
5 | 系统首页
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/sample/newProject.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 | 项目总体情况
8 |
14 |
15 |
16 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/sample/project.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 | 项目总体情况
8 |
15 |
16 |
17 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/sample/projectList.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" contentType="text/html; charset=UTF-8"
2 | pageEncoding="UTF-8"%>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
4 |
5 |
6 |
7 | 项目总体情况
8 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | priId |
36 | prjName |
37 | prjType |
38 | 操作 |
39 |
40 |
41 |
42 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/pages/styles/styles.jsp:
--------------------------------------------------------------------------------
1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2 | <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
3 | <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
4 | <%
5 | String path = request.getContextPath();
6 | String basePath = request.getScheme() + "://"
7 | + request.getServerName() + ":" + request.getServerPort()
8 | + path + "/";
9 | %>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
--------------------------------------------------------------------------------
/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 | Archetype Created Web Application
7 |
8 |
9 | org.springframework.web.context.ContextLoaderListener
10 |
11 |
12 |
13 | contextConfigLocation
14 | classpath:spring/*-config.xml
15 |
16 |
17 | sampleSevlet
18 | org.springframework.web.servlet.DispatcherServlet
19 |
20 | contextConfigLocation
21 | classpath:spring/mvc-core-config.xml
22 |
23 | 1
24 |
25 |
26 | sampleSevlet
27 | /
28 |
29 |
30 |
31 | encodingFilter
32 | org.springframework.web.filter.CharacterEncodingFilter
33 |
34 | encoding
35 | UTF-8
36 |
37 |
38 | forceEncoding
39 | true
40 |
41 |
42 |
43 | encodingFilter
44 | /*
45 |
46 |
47 |
48 | /WEB-INF/pages/index.jsp
49 |
50 |
51 |
52 | java.lang.Exception
53 | /WEB-INF/pages/error/error.jsp
54 |
55 |
56 |
--------------------------------------------------------------------------------