diff --git a/apache-poi/temp.xlsx b/apache-poi/temp.xlsx
index da67ca9e9e..5281b2c4de 100644
Binary files a/apache-poi/temp.xlsx and b/apache-poi/temp.xlsx differ
diff --git a/hystrix/pom.xml b/hystrix/pom.xml
index 5e050d726e..ba1a596631 100644
--- a/hystrix/pom.xml
+++ b/hystrix/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/jjwt/pom.xml b/jjwt/pom.xml
index c1332fa2d7..982b24987b 100644
--- a/jjwt/pom.xml
+++ b/jjwt/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/pom.xml b/pom.xml
index 764b8c6416..2392e2c594 100644
--- a/pom.xml
+++ b/pom.xml
@@ -158,7 +158,7 @@
spring-security-client/spring-security-thymeleaf-authorize
spring-security-client/spring-security-thymeleaf-config
spring-security-core
- spring-security-custom-permission
+ spring-security-mvc-boot
spring-security-mvc-custom
spring-security-mvc-digest-auth
spring-security-mvc-ldap
diff --git a/spring-all/pom.xml b/spring-all/pom.xml
index deb6bd6f6a..f28fe1f10d 100644
--- a/spring-all/pom.xml
+++ b/spring-all/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/batch-job/pom.xml b/spring-cloud-data-flow/batch-job/pom.xml
index 3d05732027..5e519e9a35 100644
--- a/spring-cloud-data-flow/batch-job/pom.xml
+++ b/spring-cloud-data-flow/batch-job/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/data-flow-server/pom.xml b/spring-cloud-data-flow/data-flow-server/pom.xml
index b1f920c94e..1ed2d4fb74 100644
--- a/spring-cloud-data-flow/data-flow-server/pom.xml
+++ b/spring-cloud-data-flow/data-flow-server/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/data-flow-shell/pom.xml b/spring-cloud-data-flow/data-flow-shell/pom.xml
index 55fa995052..d3bd297152 100644
--- a/spring-cloud-data-flow/data-flow-shell/pom.xml
+++ b/spring-cloud-data-flow/data-flow-shell/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/log-sink/pom.xml b/spring-cloud-data-flow/log-sink/pom.xml
index 6443ed88c8..dc21132b9f 100644
--- a/spring-cloud-data-flow/log-sink/pom.xml
+++ b/spring-cloud-data-flow/log-sink/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/time-processor/pom.xml b/spring-cloud-data-flow/time-processor/pom.xml
index d7553b110f..51a66014e0 100644
--- a/spring-cloud-data-flow/time-processor/pom.xml
+++ b/spring-cloud-data-flow/time-processor/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud-data-flow/time-source/pom.xml b/spring-cloud-data-flow/time-source/pom.xml
index 2523dfabea..57933c2833 100644
--- a/spring-cloud-data-flow/time-source/pom.xml
+++ b/spring-cloud-data-flow/time-source/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-bootstrap/config/pom.xml b/spring-cloud/spring-cloud-bootstrap/config/pom.xml
index 24d054a87b..2c8ad65102 100644
--- a/spring-cloud/spring-cloud-bootstrap/config/pom.xml
+++ b/spring-cloud/spring-cloud-bootstrap/config/pom.xml
@@ -10,7 +10,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-bootstrap/discovery/pom.xml b/spring-cloud/spring-cloud-bootstrap/discovery/pom.xml
index be3bfbb0be..40a186350c 100644
--- a/spring-cloud/spring-cloud-bootstrap/discovery/pom.xml
+++ b/spring-cloud/spring-cloud-bootstrap/discovery/pom.xml
@@ -10,7 +10,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-bootstrap/gateway/pom.xml b/spring-cloud/spring-cloud-bootstrap/gateway/pom.xml
index 9186f12226..044730ba22 100644
--- a/spring-cloud/spring-cloud-bootstrap/gateway/pom.xml
+++ b/spring-cloud/spring-cloud-bootstrap/gateway/pom.xml
@@ -10,7 +10,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-bootstrap/svc-book/pom.xml b/spring-cloud/spring-cloud-bootstrap/svc-book/pom.xml
index ac7cd30dbf..9a99054ed5 100644
--- a/spring-cloud/spring-cloud-bootstrap/svc-book/pom.xml
+++ b/spring-cloud/spring-cloud-bootstrap/svc-book/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-bootstrap/svc-rating/pom.xml b/spring-cloud/spring-cloud-bootstrap/svc-rating/pom.xml
index 36a29708a6..35da8beba8 100644
--- a/spring-cloud/spring-cloud-bootstrap/svc-rating/pom.xml
+++ b/spring-cloud/spring-cloud-bootstrap/svc-rating/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-config/pom.xml b/spring-cloud/spring-cloud-config/pom.xml
index d25037a49f..56ff377956 100644
--- a/spring-cloud/spring-cloud-config/pom.xml
+++ b/spring-cloud/spring-cloud-config/pom.xml
@@ -16,7 +16,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cloud/spring-cloud-ribbon-client/pom.xml b/spring-cloud/spring-cloud-ribbon-client/pom.xml
index 8aee41f5c4..d70de51a58 100644
--- a/spring-cloud/spring-cloud-ribbon-client/pom.xml
+++ b/spring-cloud/spring-cloud-ribbon-client/pom.xml
@@ -11,7 +11,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-cucumber/pom.xml b/spring-cucumber/pom.xml
index 644ddff1d8..55c0af670a 100644
--- a/spring-cucumber/pom.xml
+++ b/spring-cucumber/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-data-dynamodb/pom.xml b/spring-data-dynamodb/pom.xml
index 0ce9b3a399..8b06c0b36f 100644
--- a/spring-data-dynamodb/pom.xml
+++ b/spring-data-dynamodb/pom.xml
@@ -11,7 +11,7 @@
spring-boot-starter-parent
org.springframework.boot
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-data-rest/pom.xml b/spring-data-rest/pom.xml
index da5d844211..4e8001ae7b 100644
--- a/spring-data-rest/pom.xml
+++ b/spring-data-rest/pom.xml
@@ -14,7 +14,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-jooq/pom.xml b/spring-jooq/pom.xml
index bf0dffd68c..195c0b8514 100644
--- a/spring-jooq/pom.xml
+++ b/spring-jooq/pom.xml
@@ -1,215 +1,215 @@
- 4.0.0
- com.baeldung
- jooq-spring
- 0.0.1-SNAPSHOT
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ 4.0.0
+ com.baeldung
+ jooq-spring
+ 0.0.1-SNAPSHOT
-
-
-
-
- org.springframework.boot
- spring-boot-dependencies
- 1.4.2.RELEASE
- pom
- import
-
-
-
+
+
+
+
+ org.springframework.boot
+ spring-boot-dependencies
+ 1.4.4.RELEASE
+ pom
+ import
+
+
+
-
-
-
- org.jooq
- jooq
-
+
+
+
+ org.jooq
+ jooq
+
-
-
- com.h2database
- h2
-
+
+
+ com.h2database
+ h2
+
-
-
- org.springframework
- spring-context
-
-
- org.springframework
- spring-jdbc
-
-
- org.springframework.boot
- spring-boot-starter-jooq
-
+
+
+ org.springframework
+ spring-context
+
+
+ org.springframework
+ spring-jdbc
+
+
+ org.springframework.boot
+ spring-boot-starter-jooq
+
-
-
- org.slf4j
- slf4j-api
- runtime
-
-
- ch.qos.logback
- logback-classic
- runtime
-
+
+
+ org.slf4j
+ slf4j-api
+ runtime
+
+
+ ch.qos.logback
+ logback-classic
+ runtime
+
-
-
- junit
- junit
- test
-
-
- org.springframework
- spring-test
- test
-
-
- org.springframework.boot
- spring-boot-starter-test
-
-
-
+
+
+ junit
+ junit
+ test
+
+
+ org.springframework
+ spring-test
+ test
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+
-
-
-
- org.codehaus.mojo
- properties-maven-plugin
- ${properties-maven-plugin.version}
-
-
- initialize
-
- read-project-properties
-
-
-
- src/main/resources/intro_config.properties
-
-
-
-
-
+
-
- org.codehaus.mojo
- sql-maven-plugin
- ${sql-maven-plugin.version}
-
-
- initialize
-
- execute
-
-
- ${db.driver}
- ${db.url}
- ${db.username}
- ${db.password}
-
- src/main/resources/intro_schema.sql
-
-
-
-
-
-
- com.h2database
- h2
- ${com.h2database.version}
-
-
-
+
+
+
+ org.codehaus.mojo
+ properties-maven-plugin
+ ${properties-maven-plugin.version}
+
+
+ initialize
+
+ read-project-properties
+
+
+
+ src/main/resources/intro_config.properties
+
+
+
+
+
-
- org.jooq
- jooq-codegen-maven
- ${org.jooq.version}
-
-
- generate-sources
-
- generate
-
-
-
- ${db.driver}
- ${db.url}
- ${db.username}
- ${db.password}
-
-
-
- com.baeldung.jooq.introduction.db
- src/main/java
-
-
-
-
-
-
+
+ org.codehaus.mojo
+ sql-maven-plugin
+ ${sql-maven-plugin.version}
+
+
+ initialize
+
+ execute
+
+
+ ${db.driver}
+ ${db.url}
+ ${db.username}
+ ${db.password}
+
+ src/main/resources/intro_schema.sql
+
+
+
+
+
+
+ com.h2database
+ h2
+ ${com.h2database.version}
+
+
+
-
- org.apache.maven.plugins
- maven-compiler-plugin
- ${maven-compiler-plugin.version}
-
- 1.8
- 1.8
-
-
+
+ org.jooq
+ jooq-codegen-maven
+ ${org.jooq.version}
+
+
+ generate-sources
+
+ generate
+
+
+
+ ${db.driver}
+ ${db.url}
+ ${db.username}
+ ${db.password}
+
+
+
+ com.baeldung.jooq.introduction.db
+ src/main/java
+
+
+
+
+
+
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
- **/*IntegrationTest.java
- **/*LiveTest.java
-
-
-
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven-compiler-plugin.version}
+
+ 1.8
+ 1.8
+
+
-
-
-
-
-
- org.eclipse.m2e
- lifecycle-mapping
- ${lifecycle-mapping.version}
-
-
-
-
-
- org.jooq
-
- jooq-codegen-maven
-
-
- [3.7.3,)
-
-
- generate
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ **/*IntegrationTest.java
+ **/*LiveTest.java
+
+
+
+
+
+
+
+
+
+ org.eclipse.m2e
+ lifecycle-mapping
+ ${lifecycle-mapping.version}
+
+
+
+
+
+ org.jooq
+
+ jooq-codegen-maven
+
+
+ [3.7.3,)
+
+
+ generate
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -245,21 +245,21 @@
-
-
- 3.8.6
- 1.4.193
- 4.3.4.RELEASE
- 1.7.21
- 1.1.7
- 4.12
-
- 3.6.0
+
+
+ 3.8.6
+ 1.4.193
+ 4.3.4.RELEASE
+ 1.7.21
+ 1.1.7
+ 4.12
+
+ 3.6.0
2.19.1
1.0.0
1.5
- 1.0.0
-
-
+ 1.0.0
+
+
\ No newline at end of file
diff --git a/spring-katharsis/pom.xml b/spring-katharsis/pom.xml
index 32f24231a9..25a1c13f6b 100644
--- a/spring-katharsis/pom.xml
+++ b/spring-katharsis/pom.xml
@@ -8,7 +8,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-mockito/pom.xml b/spring-mockito/pom.xml
index ca9bad2bc0..3231faf197 100644
--- a/spring-mockito/pom.xml
+++ b/spring-mockito/pom.xml
@@ -13,7 +13,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-mvc-email/pom.xml b/spring-mvc-email/pom.xml
index 5d72bb4a1c..4a3ef5f83b 100644
--- a/spring-mvc-email/pom.xml
+++ b/spring-mvc-email/pom.xml
@@ -12,7 +12,7 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.2.RELEASE
+ 1.4.4.RELEASE
diff --git a/spring-mvc-java/src/main/java/com/baeldung/model/FormDataWithFile.java b/spring-mvc-java/src/main/java/com/baeldung/model/FormDataWithFile.java
new file mode 100644
index 0000000000..29925a592d
--- /dev/null
+++ b/spring-mvc-java/src/main/java/com/baeldung/model/FormDataWithFile.java
@@ -0,0 +1,35 @@
+package com.baeldung.model;
+
+import org.springframework.web.multipart.MultipartFile;
+
+public class FormDataWithFile {
+
+ private String name;
+ private String email;
+ private MultipartFile file;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public MultipartFile getFile() {
+ return file;
+ }
+
+ public void setFile(MultipartFile file) {
+ this.file = file;
+ }
+
+}
diff --git a/spring-mvc-java/src/main/java/com/baeldung/web/controller/FileUploadController.java b/spring-mvc-java/src/main/java/com/baeldung/web/controller/FileUploadController.java
index 61bccb21aa..b357b9270f 100644
--- a/spring-mvc-java/src/main/java/com/baeldung/web/controller/FileUploadController.java
+++ b/spring-mvc-java/src/main/java/com/baeldung/web/controller/FileUploadController.java
@@ -2,11 +2,14 @@ package com.baeldung.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
+import com.baeldung.model.FormDataWithFile;
+
@Controller
public class FileUploadController {
@@ -29,4 +32,21 @@ public class FileUploadController {
modelMap.addAttribute("files", files);
return "fileUploadView";
}
+
+ @RequestMapping(value = "/uploadFileWithAddtionalData", method = RequestMethod.POST)
+ public String submit(@RequestParam final MultipartFile file, @RequestParam final String name, @RequestParam final String email, final ModelMap modelMap) {
+
+ modelMap.addAttribute("name", name);
+ modelMap.addAttribute("email", email);
+ modelMap.addAttribute("file", file);
+ return "fileUploadView";
+ }
+
+ @RequestMapping(value = "/uploadFileModelAttribute", method = RequestMethod.POST)
+ public String submit(@ModelAttribute final FormDataWithFile formDataWithFile, final ModelMap modelMap) {
+
+ modelMap.addAttribute("formDataWithFile", formDataWithFile);
+ return "fileUploadView";
+ }
+
}
diff --git a/spring-mvc-java/src/main/webapp/WEB-INF/view/fileUploadForm.jsp b/spring-mvc-java/src/main/webapp/WEB-INF/view/fileUploadForm.jsp
index 1414b824ff..41b7c09629 100644
--- a/spring-mvc-java/src/main/webapp/WEB-INF/view/fileUploadForm.jsp
+++ b/spring-mvc-java/src/main/webapp/WEB-INF/view/fileUploadForm.jsp
@@ -49,6 +49,58 @@
+
+
+
+ Fill the Form and Select a File (@RequestParam)
+
+
+
+
+
+
+
+
+
+ Fill the Form and Select a File (@ModelAttribute)
+
+
+
+
+
+