From b72a865367fc6501c7562931acf3b6cc82dd4c50 Mon Sep 17 00:00:00 2001 From: Eugen Date: Tue, 30 Apr 2013 18:04:57 +0300 Subject: [PATCH] spring mvc work --- {spring-mvc => spring-mvc-java}/.classpath | 0 ...e.wst.jsdt.core.javascriptValidator.launch | 0 .../resources => spring-mvc-java}/.gitignore | 0 spring-mvc-java/.project | 60 ++++++++ .../.settings/.jsdtscope | 0 .../.settings/org.eclipse.jdt.core.prefs | 0 .../.settings/org.eclipse.jdt.ui.prefs | 0 .../.settings/org.eclipse.m2e.core.prefs | 0 .../.settings/org.eclipse.m2e.wtp.prefs | 0 .../org.eclipse.wst.common.component | 0 ....eclipse.wst.common.project.facet.core.xml | 0 ...rg.eclipse.wst.jsdt.ui.superType.container | 0 .../org.eclipse.wst.jsdt.ui.superType.name | 0 .../org.eclipse.wst.validation.prefs | 0 .../org.eclipse.wst.ws.service.policy.prefs | 0 spring-mvc-java/.springBeans | 14 ++ {spring-mvc => spring-mvc-java}/README.md | 0 {spring-mvc => spring-mvc-java}/pom.xml | 0 .../spring/web/config/ClientWebConfig.java | 0 .../src/main/resources/logback.xml | 0 .../src/main/resources/webSecurityConfig.xml | 0 .../src/main/webapp/WEB-INF/mvc-servlet.xml | 0 .../src/main/webapp/WEB-INF/view/sample.jsp | 0 .../src/main/webapp/WEB-INF/web.xml | 0 spring-mvc-java/src/test/resources/.gitignore | 13 ++ spring-mvc-xml/.classpath | 37 +++++ ...e.wst.jsdt.core.javascriptValidator.launch | 7 + spring-mvc-xml/.gitignore | 13 ++ spring-mvc-xml/.project | 60 ++++++++ spring-mvc-xml/.project~ | 60 ++++++++ spring-mvc-xml/.settings/.jsdtscope | 12 ++ .../.settings/org.eclipse.jdt.core.prefs | 91 +++++++++++ .../.settings/org.eclipse.jdt.ui.prefs | 55 +++++++ .../.settings/org.eclipse.m2e.core.prefs | 4 + .../.settings/org.eclipse.m2e.wtp.prefs | 2 + .../org.eclipse.wst.common.component | 10 ++ ....eclipse.wst.common.project.facet.core.xml | 6 + ...rg.eclipse.wst.jsdt.ui.superType.container | 1 + .../org.eclipse.wst.jsdt.ui.superType.name | 1 + .../org.eclipse.wst.validation.prefs | 14 ++ .../org.eclipse.wst.ws.service.policy.prefs | 2 + spring-mvc-xml/.springBeans | 14 ++ spring-mvc-xml/README.md | 3 + spring-mvc-xml/README.md~ | 4 + spring-mvc-xml/pom.xml | 142 ++++++++++++++++++ .../spring/web/config/ClientWebConfig.java | 39 +++++ spring-mvc-xml/src/main/resources/logback.xml | 60 ++++++++ .../src/main/resources/webSecurityConfig.xml | 36 +++++ .../src/main/webapp/WEB-INF/mvc-servlet.xml | 6 + .../src/main/webapp/WEB-INF/view/sample.jsp | 7 + .../src/main/webapp/WEB-INF/web.xml | 42 ++++++ spring-mvc-xml/src/test/resources/.gitignore | 13 ++ spring-mvc/.gitignore | 14 +- spring-mvc/.project | 2 +- spring-mvc/.springBeans | 1 - 55 files changed, 830 insertions(+), 15 deletions(-) rename {spring-mvc => spring-mvc-java}/.classpath (100%) rename {spring-mvc => spring-mvc-java}/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch (100%) rename {spring-mvc/src/test/resources => spring-mvc-java}/.gitignore (100%) create mode 100644 spring-mvc-java/.project rename {spring-mvc => spring-mvc-java}/.settings/.jsdtscope (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.jdt.core.prefs (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.jdt.ui.prefs (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.m2e.core.prefs (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.m2e.wtp.prefs (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.common.component (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.common.project.facet.core.xml (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.jsdt.ui.superType.container (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.jsdt.ui.superType.name (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.validation.prefs (100%) rename {spring-mvc => spring-mvc-java}/.settings/org.eclipse.wst.ws.service.policy.prefs (100%) create mode 100644 spring-mvc-java/.springBeans rename {spring-mvc => spring-mvc-java}/README.md (100%) rename {spring-mvc => spring-mvc-java}/pom.xml (100%) rename {spring-mvc => spring-mvc-java}/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java (100%) rename {spring-mvc => spring-mvc-java}/src/main/resources/logback.xml (100%) rename {spring-mvc => spring-mvc-java}/src/main/resources/webSecurityConfig.xml (100%) rename {spring-mvc => spring-mvc-java}/src/main/webapp/WEB-INF/mvc-servlet.xml (100%) rename {spring-mvc => spring-mvc-java}/src/main/webapp/WEB-INF/view/sample.jsp (100%) rename {spring-mvc => spring-mvc-java}/src/main/webapp/WEB-INF/web.xml (100%) create mode 100644 spring-mvc-java/src/test/resources/.gitignore create mode 100644 spring-mvc-xml/.classpath create mode 100644 spring-mvc-xml/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch create mode 100644 spring-mvc-xml/.gitignore create mode 100644 spring-mvc-xml/.project create mode 100644 spring-mvc-xml/.project~ create mode 100644 spring-mvc-xml/.settings/.jsdtscope create mode 100644 spring-mvc-xml/.settings/org.eclipse.jdt.core.prefs create mode 100644 spring-mvc-xml/.settings/org.eclipse.jdt.ui.prefs create mode 100644 spring-mvc-xml/.settings/org.eclipse.m2e.core.prefs create mode 100644 spring-mvc-xml/.settings/org.eclipse.m2e.wtp.prefs create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.common.component create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.common.project.facet.core.xml create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.container create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.name create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.validation.prefs create mode 100644 spring-mvc-xml/.settings/org.eclipse.wst.ws.service.policy.prefs create mode 100644 spring-mvc-xml/.springBeans create mode 100644 spring-mvc-xml/README.md create mode 100644 spring-mvc-xml/README.md~ create mode 100644 spring-mvc-xml/pom.xml create mode 100644 spring-mvc-xml/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java create mode 100644 spring-mvc-xml/src/main/resources/logback.xml create mode 100644 spring-mvc-xml/src/main/resources/webSecurityConfig.xml create mode 100644 spring-mvc-xml/src/main/webapp/WEB-INF/mvc-servlet.xml create mode 100644 spring-mvc-xml/src/main/webapp/WEB-INF/view/sample.jsp create mode 100644 spring-mvc-xml/src/main/webapp/WEB-INF/web.xml create mode 100644 spring-mvc-xml/src/test/resources/.gitignore diff --git a/spring-mvc/.classpath b/spring-mvc-java/.classpath similarity index 100% rename from spring-mvc/.classpath rename to spring-mvc-java/.classpath diff --git a/spring-mvc/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch b/spring-mvc-java/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch similarity index 100% rename from spring-mvc/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch rename to spring-mvc-java/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch diff --git a/spring-mvc/src/test/resources/.gitignore b/spring-mvc-java/.gitignore similarity index 100% rename from spring-mvc/src/test/resources/.gitignore rename to spring-mvc-java/.gitignore diff --git a/spring-mvc-java/.project b/spring-mvc-java/.project new file mode 100644 index 0000000000..46209afead --- /dev/null +++ b/spring-mvc-java/.project @@ -0,0 +1,60 @@ + + + spring-mvc-java + + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.zeroturnaround.eclipse.rebelXmlBuilder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + org.zeroturnaround.eclipse.jrebelNature + + diff --git a/spring-mvc/.settings/.jsdtscope b/spring-mvc-java/.settings/.jsdtscope similarity index 100% rename from spring-mvc/.settings/.jsdtscope rename to spring-mvc-java/.settings/.jsdtscope diff --git a/spring-mvc/.settings/org.eclipse.jdt.core.prefs b/spring-mvc-java/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.jdt.core.prefs rename to spring-mvc-java/.settings/org.eclipse.jdt.core.prefs diff --git a/spring-mvc/.settings/org.eclipse.jdt.ui.prefs b/spring-mvc-java/.settings/org.eclipse.jdt.ui.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.jdt.ui.prefs rename to spring-mvc-java/.settings/org.eclipse.jdt.ui.prefs diff --git a/spring-mvc/.settings/org.eclipse.m2e.core.prefs b/spring-mvc-java/.settings/org.eclipse.m2e.core.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.m2e.core.prefs rename to spring-mvc-java/.settings/org.eclipse.m2e.core.prefs diff --git a/spring-mvc/.settings/org.eclipse.m2e.wtp.prefs b/spring-mvc-java/.settings/org.eclipse.m2e.wtp.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.m2e.wtp.prefs rename to spring-mvc-java/.settings/org.eclipse.m2e.wtp.prefs diff --git a/spring-mvc/.settings/org.eclipse.wst.common.component b/spring-mvc-java/.settings/org.eclipse.wst.common.component similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.common.component rename to spring-mvc-java/.settings/org.eclipse.wst.common.component diff --git a/spring-mvc/.settings/org.eclipse.wst.common.project.facet.core.xml b/spring-mvc-java/.settings/org.eclipse.wst.common.project.facet.core.xml similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.common.project.facet.core.xml rename to spring-mvc-java/.settings/org.eclipse.wst.common.project.facet.core.xml diff --git a/spring-mvc/.settings/org.eclipse.wst.jsdt.ui.superType.container b/spring-mvc-java/.settings/org.eclipse.wst.jsdt.ui.superType.container similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.jsdt.ui.superType.container rename to spring-mvc-java/.settings/org.eclipse.wst.jsdt.ui.superType.container diff --git a/spring-mvc/.settings/org.eclipse.wst.jsdt.ui.superType.name b/spring-mvc-java/.settings/org.eclipse.wst.jsdt.ui.superType.name similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.jsdt.ui.superType.name rename to spring-mvc-java/.settings/org.eclipse.wst.jsdt.ui.superType.name diff --git a/spring-mvc/.settings/org.eclipse.wst.validation.prefs b/spring-mvc-java/.settings/org.eclipse.wst.validation.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.validation.prefs rename to spring-mvc-java/.settings/org.eclipse.wst.validation.prefs diff --git a/spring-mvc/.settings/org.eclipse.wst.ws.service.policy.prefs b/spring-mvc-java/.settings/org.eclipse.wst.ws.service.policy.prefs similarity index 100% rename from spring-mvc/.settings/org.eclipse.wst.ws.service.policy.prefs rename to spring-mvc-java/.settings/org.eclipse.wst.ws.service.policy.prefs diff --git a/spring-mvc-java/.springBeans b/spring-mvc-java/.springBeans new file mode 100644 index 0000000000..7623a7e888 --- /dev/null +++ b/spring-mvc-java/.springBeans @@ -0,0 +1,14 @@ + + + 1 + + + + + + + src/main/webapp/WEB-INF/mvc-servlet.xml + + + + diff --git a/spring-mvc/README.md b/spring-mvc-java/README.md similarity index 100% rename from spring-mvc/README.md rename to spring-mvc-java/README.md diff --git a/spring-mvc/pom.xml b/spring-mvc-java/pom.xml similarity index 100% rename from spring-mvc/pom.xml rename to spring-mvc-java/pom.xml diff --git a/spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java b/spring-mvc-java/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java similarity index 100% rename from spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java rename to spring-mvc-java/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java diff --git a/spring-mvc/src/main/resources/logback.xml b/spring-mvc-java/src/main/resources/logback.xml similarity index 100% rename from spring-mvc/src/main/resources/logback.xml rename to spring-mvc-java/src/main/resources/logback.xml diff --git a/spring-mvc/src/main/resources/webSecurityConfig.xml b/spring-mvc-java/src/main/resources/webSecurityConfig.xml similarity index 100% rename from spring-mvc/src/main/resources/webSecurityConfig.xml rename to spring-mvc-java/src/main/resources/webSecurityConfig.xml diff --git a/spring-mvc/src/main/webapp/WEB-INF/mvc-servlet.xml b/spring-mvc-java/src/main/webapp/WEB-INF/mvc-servlet.xml similarity index 100% rename from spring-mvc/src/main/webapp/WEB-INF/mvc-servlet.xml rename to spring-mvc-java/src/main/webapp/WEB-INF/mvc-servlet.xml diff --git a/spring-mvc/src/main/webapp/WEB-INF/view/sample.jsp b/spring-mvc-java/src/main/webapp/WEB-INF/view/sample.jsp similarity index 100% rename from spring-mvc/src/main/webapp/WEB-INF/view/sample.jsp rename to spring-mvc-java/src/main/webapp/WEB-INF/view/sample.jsp diff --git a/spring-mvc/src/main/webapp/WEB-INF/web.xml b/spring-mvc-java/src/main/webapp/WEB-INF/web.xml similarity index 100% rename from spring-mvc/src/main/webapp/WEB-INF/web.xml rename to spring-mvc-java/src/main/webapp/WEB-INF/web.xml diff --git a/spring-mvc-java/src/test/resources/.gitignore b/spring-mvc-java/src/test/resources/.gitignore new file mode 100644 index 0000000000..83c05e60c8 --- /dev/null +++ b/spring-mvc-java/src/test/resources/.gitignore @@ -0,0 +1,13 @@ +*.class + +#folders# +/target +/neoDb* +/data +/src/main/webapp/WEB-INF/classes +*/META-INF/* + +# Packaged files # +*.jar +*.war +*.ear \ No newline at end of file diff --git a/spring-mvc-xml/.classpath b/spring-mvc-xml/.classpath new file mode 100644 index 0000000000..eed10d8a8b --- /dev/null +++ b/spring-mvc-xml/.classpath @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spring-mvc-xml/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch b/spring-mvc-xml/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch new file mode 100644 index 0000000000..627021fb96 --- /dev/null +++ b/spring-mvc-xml/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch @@ -0,0 +1,7 @@ + + + + + + + diff --git a/spring-mvc-xml/.gitignore b/spring-mvc-xml/.gitignore new file mode 100644 index 0000000000..83c05e60c8 --- /dev/null +++ b/spring-mvc-xml/.gitignore @@ -0,0 +1,13 @@ +*.class + +#folders# +/target +/neoDb* +/data +/src/main/webapp/WEB-INF/classes +*/META-INF/* + +# Packaged files # +*.jar +*.war +*.ear \ No newline at end of file diff --git a/spring-mvc-xml/.project b/spring-mvc-xml/.project new file mode 100644 index 0000000000..6cdb4e0e51 --- /dev/null +++ b/spring-mvc-xml/.project @@ -0,0 +1,60 @@ + + + spring-mvc-xml + + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.zeroturnaround.eclipse.rebelXmlBuilder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + org.zeroturnaround.eclipse.jrebelNature + + diff --git a/spring-mvc-xml/.project~ b/spring-mvc-xml/.project~ new file mode 100644 index 0000000000..90b8ccd78f --- /dev/null +++ b/spring-mvc-xml/.project~ @@ -0,0 +1,60 @@ + + + spring-mvc + + + + + + org.eclipse.ui.externaltools.ExternalToolBuilder + full,incremental, + + + LaunchConfigHandle + <project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + org.zeroturnaround.eclipse.rebelXmlBuilder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.wst.jsdt.core.jsNature + org.zeroturnaround.eclipse.jrebelNature + + diff --git a/spring-mvc-xml/.settings/.jsdtscope b/spring-mvc-xml/.settings/.jsdtscope new file mode 100644 index 0000000000..b46b9207a8 --- /dev/null +++ b/spring-mvc-xml/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/spring-mvc-xml/.settings/org.eclipse.jdt.core.prefs b/spring-mvc-xml/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..0924ed68cf --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,91 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore +org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull +org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault +org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable +org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=warning +org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore +org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=error +org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore +org.eclipse.jdt.core.compiler.problem.localVariableHiding=error +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error +org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore +org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore +org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=error +org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/spring-mvc-xml/.settings/org.eclipse.jdt.ui.prefs b/spring-mvc-xml/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..471e9b0d81 --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,55 @@ +#Sat Jan 21 23:04:06 EET 2012 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=true +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=true +sp_cleanup.correct_indentation=true +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=true +sp_cleanup.make_local_variable_final=true +sp_cleanup.make_parameters_final=true +sp_cleanup.make_private_fields_final=false +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=false +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=true +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=true +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=true +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=true +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=true +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/spring-mvc-xml/.settings/org.eclipse.m2e.core.prefs b/spring-mvc-xml/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000000..f897a7f1cb --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/spring-mvc-xml/.settings/org.eclipse.m2e.wtp.prefs b/spring-mvc-xml/.settings/org.eclipse.m2e.wtp.prefs new file mode 100644 index 0000000000..ef86089622 --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.m2e.wtp.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.m2e.wtp.enabledProjectSpecificPrefs=false diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.common.component b/spring-mvc-xml/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000000..9784ac36ee --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.common.component @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.common.project.facet.core.xml b/spring-mvc-xml/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000000..a67649dfa5 --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.container b/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000000..3bd5d0a480 --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.name b/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000000..05bd71b6ec --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.validation.prefs b/spring-mvc-xml/.settings/org.eclipse.wst.validation.prefs new file mode 100644 index 0000000000..cacf5451ae --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.validation.prefs @@ -0,0 +1,14 @@ +DELEGATES_PREFERENCE=delegateValidatorList +USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator; +USER_MANUAL_PREFERENCE=enabledManualValidatorListorg.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator; +USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.303.v201202090300 +eclipse.preferences.version=1 +override=true +suspend=false +vals/org.eclipse.jst.jsf.ui.JSFAppConfigValidator/global=FF01 +vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01 +vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01 +vals/org.eclipse.jst.jsp.core.TLDValidator/global=FF01 +vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01 +vals/org.eclipse.wst.jsdt.web.core.JsBatchValidator/global=TF02 +vf.version=3 diff --git a/spring-mvc-xml/.settings/org.eclipse.wst.ws.service.policy.prefs b/spring-mvc-xml/.settings/org.eclipse.wst.ws.service.policy.prefs new file mode 100644 index 0000000000..9cfcabe16f --- /dev/null +++ b/spring-mvc-xml/.settings/org.eclipse.wst.ws.service.policy.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.wst.ws.service.policy.projectEnabled=false diff --git a/spring-mvc-xml/.springBeans b/spring-mvc-xml/.springBeans new file mode 100644 index 0000000000..7623a7e888 --- /dev/null +++ b/spring-mvc-xml/.springBeans @@ -0,0 +1,14 @@ + + + 1 + + + + + + + src/main/webapp/WEB-INF/mvc-servlet.xml + + + + diff --git a/spring-mvc-xml/README.md b/spring-mvc-xml/README.md new file mode 100644 index 0000000000..afb2185d60 --- /dev/null +++ b/spring-mvc-xml/README.md @@ -0,0 +1,3 @@ +Spring MVC with Java Configuration +========= + diff --git a/spring-mvc-xml/README.md~ b/spring-mvc-xml/README.md~ new file mode 100644 index 0000000000..82864cb1dc --- /dev/null +++ b/spring-mvc-xml/README.md~ @@ -0,0 +1,4 @@ +tutorials +========= + +Baeldung tutorials diff --git a/spring-mvc-xml/pom.xml b/spring-mvc-xml/pom.xml new file mode 100644 index 0000000000..3700a428dd --- /dev/null +++ b/spring-mvc-xml/pom.xml @@ -0,0 +1,142 @@ + + 4.0.0 + org.baeldung + spring-mvc + 0.1-SNAPSHOT + + spring-mvc + war + + + + + + + org.springframework + spring-web + ${org.springframework.version} + + + org.springframework + spring-webmvc + ${org.springframework.version} + + + + + + javax.servlet + javax.servlet-api + 3.0.1 + provided + + + + javax.servlet + jstl + 1.2 + runtime + + + + + + junit + junit-dep + ${junit.version} + test + + + + org.hamcrest + hamcrest-core + ${org.hamcrest.version} + test + + + org.hamcrest + hamcrest-library + ${org.hamcrest.version} + test + + + + org.mockito + mockito-core + ${mockito.version} + test + + + + + + spring-mvc + + + src/main/resources + true + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + + true + + jetty8x + embedded + + + + + + + 8082 + + + + + + + + + + + + 3.2.2.RELEASE + + + 1.7.5 + 1.0.11 + + + 1.3 + 4.11 + 1.9.5 + + 4.2.4 + 4.2.4 + + 1.8.0 + 1.8.9 + + + + \ No newline at end of file diff --git a/spring-mvc-xml/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java b/spring-mvc-xml/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java new file mode 100644 index 0000000000..2758a707e6 --- /dev/null +++ b/spring-mvc-xml/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java @@ -0,0 +1,39 @@ +package org.baeldung.spring.web.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.ViewResolver; +import org.springframework.web.servlet.config.annotation.EnableWebMvc; +import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; +import org.springframework.web.servlet.view.InternalResourceViewResolver; +import org.springframework.web.servlet.view.JstlView; + +@EnableWebMvc +@Configuration +public class ClientWebConfig extends WebMvcConfigurerAdapter { + + public ClientWebConfig() { + super(); + } + + // API + + @Override + public void addViewControllers(final ViewControllerRegistry registry) { + super.addViewControllers(registry); + + registry.addViewController("/sample.html"); + } + + @Bean + public ViewResolver viewResolver() { + final InternalResourceViewResolver bean = new InternalResourceViewResolver(); + + bean.setViewClass(JstlView.class); + bean.setPrefix("/WEB-INF/view/"); + bean.setSuffix(".jsp"); + + return bean; + } +} \ No newline at end of file diff --git a/spring-mvc-xml/src/main/resources/logback.xml b/spring-mvc-xml/src/main/resources/logback.xml new file mode 100644 index 0000000000..976d267d7d --- /dev/null +++ b/spring-mvc-xml/src/main/resources/logback.xml @@ -0,0 +1,60 @@ + + + + + + + web - %date [%thread] %-5level %logger{36} - %message%n + + + + + + /var/log/launchpad/launchpad_web.log + + web - %date [%thread] %-5level %logger{36} - %message%n + + + + + + + + ERROR + + email-smtp.us-east-1.amazonaws.com + AKIAJI6XLSOAQX3IW6HQ + AuSWMdcNObKqGGT550SR/6vDrgh50vxgFrqZHwR2tTED + true + hanriseldon@gmail.com + info@applieddatalabs.com + TESTING: %logger{20} - %m + + web - |${launchpad.origin}| %date [%thread] %-5level %logger{36} - %message%n + + + 1000 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spring-mvc-xml/src/main/resources/webSecurityConfig.xml b/spring-mvc-xml/src/main/resources/webSecurityConfig.xml new file mode 100644 index 0000000000..5569cc6950 --- /dev/null +++ b/spring-mvc-xml/src/main/resources/webSecurityConfig.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/mvc-servlet.xml b/spring-mvc-xml/src/main/webapp/WEB-INF/mvc-servlet.xml new file mode 100644 index 0000000000..5463820874 --- /dev/null +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/mvc-servlet.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/view/sample.jsp b/spring-mvc-xml/src/main/webapp/WEB-INF/view/sample.jsp new file mode 100644 index 0000000000..7cc14b5dcd --- /dev/null +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/view/sample.jsp @@ -0,0 +1,7 @@ + + + + +

This is the body of the sample view

+ + \ No newline at end of file diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..ba2bb591ed --- /dev/null +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,42 @@ + + + + Spring MVC Application + + + + contextClass + + org.springframework.web.context.support.AnnotationConfigWebApplicationContext + + + + contextConfigLocation + org.baeldung.spring.web.config + + + + org.springframework.web.context.ContextLoaderListener + + + + + mvc + org.springframework.web.servlet.DispatcherServlet + 1 + + + mvc + / + + + + index.html + + + \ No newline at end of file diff --git a/spring-mvc-xml/src/test/resources/.gitignore b/spring-mvc-xml/src/test/resources/.gitignore new file mode 100644 index 0000000000..83c05e60c8 --- /dev/null +++ b/spring-mvc-xml/src/test/resources/.gitignore @@ -0,0 +1,13 @@ +*.class + +#folders# +/target +/neoDb* +/data +/src/main/webapp/WEB-INF/classes +*/META-INF/* + +# Packaged files # +*.jar +*.war +*.ear \ No newline at end of file diff --git a/spring-mvc/.gitignore b/spring-mvc/.gitignore index 83c05e60c8..5e56e040ec 100644 --- a/spring-mvc/.gitignore +++ b/spring-mvc/.gitignore @@ -1,13 +1 @@ -*.class - -#folders# -/target -/neoDb* -/data -/src/main/webapp/WEB-INF/classes -*/META-INF/* - -# Packaged files # -*.jar -*.war -*.ear \ No newline at end of file +/bin diff --git a/spring-mvc/.project b/spring-mvc/.project index 90b8ccd78f..46209afead 100644 --- a/spring-mvc/.project +++ b/spring-mvc/.project @@ -1,6 +1,6 @@ - spring-mvc + spring-mvc-java diff --git a/spring-mvc/.springBeans b/spring-mvc/.springBeans index 7623a7e888..b854542b58 100644 --- a/spring-mvc/.springBeans +++ b/spring-mvc/.springBeans @@ -7,7 +7,6 @@ - src/main/webapp/WEB-INF/mvc-servlet.xml