diff --git a/core-java-modules/core-java-11-2/README.md b/core-java-modules/core-java-11-2/README.md
index c87936b07d..ca9a306b82 100644
--- a/core-java-modules/core-java-11-2/README.md
+++ b/core-java-modules/core-java-11-2/README.md
@@ -7,3 +7,4 @@ This module contains articles about Java 11 core features
- [Guide to Java Reflection](http://www.baeldung.com/java-reflection)
- [Guide to Java 8’s Collectors](https://www.baeldung.com/java-8-collectors)
- [New Features in Java 11](https://www.baeldung.com/java-11-new-features)
+- [Getting the Java Version at Runtime](https://www.baeldung.com/get-java-version-runtime)
diff --git a/core-java-modules/core-java-9-jigsaw/pom.xml b/core-java-modules/core-java-9-jigsaw/pom.xml
index 0797003174..a26a88f4b0 100644
--- a/core-java-modules/core-java-9-jigsaw/pom.xml
+++ b/core-java-modules/core-java-9-jigsaw/pom.xml
@@ -34,4 +34,4 @@
1.9
-
+
\ No newline at end of file
diff --git a/core-java-modules/core-java-9-streams/pom.xml b/core-java-modules/core-java-9-streams/pom.xml
index e59cc347c7..aeaf2c7f57 100644
--- a/core-java-modules/core-java-9-streams/pom.xml
+++ b/core-java-modules/core-java-9-streams/pom.xml
@@ -7,7 +7,7 @@
0.1.0-SNAPSHOT
core-java-9-streams
jar
-
+
com.baeldung.core-java-modules
core-java-modules
@@ -25,4 +25,4 @@
-
+
\ No newline at end of file
diff --git a/core-java-modules/core-java-lang-4/README.md b/core-java-modules/core-java-lang-4/README.md
index 8b8dff4bd1..e1023513eb 100644
--- a/core-java-modules/core-java-lang-4/README.md
+++ b/core-java-modules/core-java-lang-4/README.md
@@ -5,3 +5,4 @@ This module contains articles about core features in the Java language
- [The Java final Keyword – Impact on Performance](https://www.baeldung.com/java-final-performance)
- [The package-info.java File](https://www.baeldung.com/java-package-info)
- [What are Compile-time Constants in Java?](https://www.baeldung.com/java-compile-time-constants)
+- [Java Objects.hash() vs Objects.hashCode()](https://www.baeldung.com/java-objects-hash-vs-objects-hashcode)
diff --git a/core-java-modules/core-java-lang-oop-patterns/README.md b/core-java-modules/core-java-lang-oop-patterns/README.md
index 178a556a96..df68a1413a 100644
--- a/core-java-modules/core-java-lang-oop-patterns/README.md
+++ b/core-java-modules/core-java-lang-oop-patterns/README.md
@@ -7,3 +7,4 @@ This module contains articles about Object-oriented programming (OOP) patterns i
- [Inheritance and Composition (Is-a vs Has-a relationship) in Java](https://www.baeldung.com/java-inheritance-composition)
- [Immutable Objects in Java](https://www.baeldung.com/java-immutable-object)
- [How to Make a Deep Copy of an Object in Java](https://www.baeldung.com/java-deep-copy)
+- [Using an Interface vs. Abstract Class in Java](https://www.baeldung.com/java-interface-vs-abstract-class)
diff --git a/core-java-modules/core-java-regex/src/test/java/com/baeldung/ignore/pattern/metacharacters/IgnoringPatternMetacharactersUnitTest.java b/core-java-modules/core-java-regex/src/test/java/com/baeldung/ignore/pattern/metacharacters/IgnoringPatternMetacharactersUnitTest.java
new file mode 100644
index 0000000000..921876c0d5
--- /dev/null
+++ b/core-java-modules/core-java-regex/src/test/java/com/baeldung/ignore/pattern/metacharacters/IgnoringPatternMetacharactersUnitTest.java
@@ -0,0 +1,54 @@
+package com.baeldung.ignore.pattern.metacharacters;
+
+import static org.junit.Assert.assertEquals;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.junit.Test;
+
+public class IgnoringPatternMetacharactersUnitTest {
+ private static final String dollarAmounts = "$100.25, $100.50, $150.50, $100.50, $100.75";
+ private static final String patternStr = "$100.50";
+
+ @Test
+ public void givenPatternStringHasMetacharacters_whenPatternMatchedWithoutEscapingMetacharacters_thenNoMatchesFound() {
+ Pattern pattern = Pattern.compile(patternStr);
+ Matcher matcher = pattern.matcher(dollarAmounts);
+
+ int matches = 0;
+ while (matcher.find()) {
+ matches++;
+ }
+
+ assertEquals(0, matches);
+ }
+
+ @Test
+ public void givenPatternStringHasMetacharacters_whenPatternCompiledUsingManuallyMetaEscapedPattern_thenMatchingSuccessful() {
+ String metaEscapedPatternStr = "\\Q" + patternStr + "\\E";
+ Pattern pattern = Pattern.compile(metaEscapedPatternStr);
+ Matcher matcher = pattern.matcher(dollarAmounts);
+
+ int matches = 0;
+ while (matcher.find()) {
+ matches++;
+ }
+
+ assertEquals(2, matches);
+ }
+
+ @Test
+ public void givenPatternStringHasMetacharacters_whenPatternCompiledUsingLiteralPatternFromQuote_thenMatchingSuccessful() {
+ String literalPatternStr = Pattern.quote(patternStr);
+ Pattern pattern = Pattern.compile(literalPatternStr);
+ Matcher matcher = pattern.matcher(dollarAmounts);
+
+ int matches = 0;
+ while (matcher.find()) {
+ matches++;
+ }
+
+ assertEquals(2, matches);
+ }
+}
diff --git a/core-java-modules/core-java-streams-3/README.md b/core-java-modules/core-java-streams-3/README.md
index 26b4dfe975..48ebf145d2 100644
--- a/core-java-modules/core-java-streams-3/README.md
+++ b/core-java-modules/core-java-streams-3/README.md
@@ -12,4 +12,5 @@ This module contains articles about the Stream API in Java.
- [Should We Close a Java Stream?](https://www.baeldung.com/java-stream-close)
- [Returning Stream vs. Collection](https://www.baeldung.com/java-return-stream-collection)
- [Convert a Java Enumeration Into a Stream](https://www.baeldung.com/java-enumeration-to-stream)
+- [When to Use a Parallel Stream in Java](https://www.baeldung.com/java-when-to-use-parallel-stream)
- More articles: [[<-- prev>]](/../core-java-streams-2)
diff --git a/core-java-modules/core-java-string-conversions-2/README.md b/core-java-modules/core-java-string-conversions-2/README.md
index afdd7e5760..3bd3ba927e 100644
--- a/core-java-modules/core-java-string-conversions-2/README.md
+++ b/core-java-modules/core-java-string-conversions-2/README.md
@@ -6,4 +6,5 @@ This module contains articles about string conversions from/to another type.
- [Java String Conversions](https://www.baeldung.com/java-string-conversions)
- [Convert String to Byte Array and Reverse in Java](https://www.baeldung.com/java-string-to-byte-array)
- [Convert Character Array to String in Java](https://www.baeldung.com/java-char-array-to-string)
+- [Converting String to BigDecimal in Java](https://www.baeldung.com/java-string-to-bigdecimal)
- More articles: [[<-- prev]](/core-java-string-conversions)
diff --git a/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobigdecimal/StringToBigDecimalConversionUnitTest.java b/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobigdecimal/StringToBigDecimalConversionUnitTest.java
new file mode 100644
index 0000000000..cd8ef6c70f
--- /dev/null
+++ b/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobigdecimal/StringToBigDecimalConversionUnitTest.java
@@ -0,0 +1,74 @@
+package com.baeldung.stringtobigdecimal;
+
+import static org.junit.Assert.assertEquals;
+
+import java.math.BigDecimal;
+import java.text.DecimalFormat;
+import java.text.DecimalFormatSymbols;
+import java.text.ParseException;
+
+import org.junit.Test;
+
+public class StringToBigDecimalConversionUnitTest {
+
+ @Test
+ public void givenValidString_WhenBigDecimalObjectWithStringParameter_ThenResultIsDecimalObject() {
+ BigDecimal bigDecimal = new BigDecimal("123");
+ assertEquals(new BigDecimal(123), bigDecimal);
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void givenNullString_WhenBigDecimalObjectWithStringParameter_ThenNullPointerExceptionIsThrown() {
+ String bigDecimal = null;
+ new BigDecimal(bigDecimal);
+ }
+
+ @Test(expected = NumberFormatException.class)
+ public void givenInalidString_WhenBigDecimalObjectWithStringParameter_ThenNumberFormatExceptionIsThrown() {
+ new BigDecimal("&");
+ }
+
+ @Test
+ public void givenValidString_WhenValueOfDoubleFromString_ThenResultIsDecimalObject() {
+ BigDecimal bigDecimal = BigDecimal.valueOf(Double.valueOf("123.42"));
+ assertEquals(new BigDecimal(123.42).setScale(2, BigDecimal.ROUND_HALF_UP), bigDecimal);
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void givenNullString_WhenValueOfDoubleFromString_ThenNullPointerExceptionIsThrown() {
+ BigDecimal.valueOf(Double.valueOf(null));
+ }
+
+ @Test(expected = NumberFormatException.class)
+ public void givenInalidString_WhenValueOfDoubleFromString_ThenNumberFormatExceptionIsThrown() {
+ BigDecimal.valueOf(Double.valueOf("&"));
+ }
+
+ @Test
+ public void givenValidString_WhenDecimalFormatOfString_ThenResultIsDecimalObject() throws ParseException {
+ BigDecimal bigDecimal = new BigDecimal(10692467440017.111).setScale(3, BigDecimal.ROUND_HALF_UP);
+
+ DecimalFormatSymbols symbols = new DecimalFormatSymbols();
+ symbols.setGroupingSeparator(',');
+ symbols.setDecimalSeparator('.');
+ String pattern = "#,##0.0#";
+ DecimalFormat decimalFormat = new DecimalFormat(pattern, symbols);
+ decimalFormat.setParseBigDecimal(true);
+
+ // parse the string value
+ BigDecimal parsedStringValue = (BigDecimal) decimalFormat.parse("10,692,467,440,017.111");
+
+ assertEquals(bigDecimal, parsedStringValue);
+ }
+
+ @Test(expected = NullPointerException.class)
+ public void givenNullString_WhenDecimalFormatOfString_ThenNullPointerExceptionIsThrown() throws ParseException {
+ new DecimalFormat("#").parse(null);
+ }
+
+ @Test(expected = ParseException.class)
+ public void givenInalidString_WhenDecimalFormatOfString_ThenNumberFormatExceptionIsThrown() throws ParseException {
+ new DecimalFormat("#").parse("&");
+ }
+
+}
diff --git a/core-java-modules/core-java-string-operations-3/README.md b/core-java-modules/core-java-string-operations-3/README.md
index bc4af852ed..ad4ada3a68 100644
--- a/core-java-modules/core-java-string-operations-3/README.md
+++ b/core-java-modules/core-java-string-operations-3/README.md
@@ -3,3 +3,4 @@
- [Version Comparison in Java](https://www.baeldung.com/java-comparing-versions)
- [Java (String) or .toString()?](https://www.baeldung.com/java-string-casting-vs-tostring)
- [Split Java String by Newline](https://www.baeldung.com/java-string-split-by-newline)
+- [Split a String in Java and Keep the Delimiters](https://www.baeldung.com/java-split-string-keep-delimiters)
diff --git a/jws/pom.xml b/jws/pom.xml
index be42798fd1..3d2f67c691 100644
--- a/jws/pom.xml
+++ b/jws/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
com.example
jws
@@ -66,4 +67,4 @@
3.0.2
-
+
\ No newline at end of file
diff --git a/libraries-4/pom.xml b/libraries-4/pom.xml
index decd467de9..756bfbd3a8 100644
--- a/libraries-4/pom.xml
+++ b/libraries-4/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
libraries-4
diff --git a/libraries-5/pom.xml b/libraries-5/pom.xml
index ff6c208f5f..a3ca204995 100644
--- a/libraries-5/pom.xml
+++ b/libraries-5/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
libraries-5
diff --git a/libraries-6/pom.xml b/libraries-6/pom.xml
index 6db3b1b77b..289597adc9 100644
--- a/libraries-6/pom.xml
+++ b/libraries-6/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
libraries-6
@@ -112,12 +112,12 @@
renjin-script-engine
${renjin.version}
-
+
com.googlecode.libphonenumber
libphonenumber
${libphonenumber.version}
-
+
diff --git a/libraries/pom.xml b/libraries/pom.xml
index 13f91fddd0..40cc1b4671 100644
--- a/libraries/pom.xml
+++ b/libraries/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
libraries
libraries
@@ -335,7 +336,8 @@
benchmarks
-
+
org.openjdk.jmh.Main
diff --git a/mapstruct/src/main/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedService.java b/mapstruct/src/main/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedService.java
new file mode 100644
index 0000000000..22e6499711
--- /dev/null
+++ b/mapstruct/src/main/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedService.java
@@ -0,0 +1,22 @@
+package com.baeldung.mapper;
+
+import com.baeldung.dto.SimpleSource;
+import com.baeldung.entity.SimpleDestination;
+import com.baeldung.service.SimpleService;
+import org.mapstruct.Mapper;
+import org.mapstruct.Mapping;
+import org.springframework.beans.factory.annotation.Autowired;
+
+@Mapper(componentModel = "spring")
+public abstract class SimpleDestinationMapperUsingInjectedService {
+
+ @Autowired
+ protected SimpleService simpleService;
+
+ @Mapping(target = "name", expression = "java(simpleService.enrichName(source.getName()))")
+ public abstract SimpleDestination sourceToDestination(SimpleSource source);
+
+ public abstract SimpleSource destinationToSource(SimpleDestination destination);
+
+
+}
diff --git a/mapstruct/src/main/java/com/baeldung/service/SimpleService.java b/mapstruct/src/main/java/com/baeldung/service/SimpleService.java
new file mode 100644
index 0000000000..14b6c09592
--- /dev/null
+++ b/mapstruct/src/main/java/com/baeldung/service/SimpleService.java
@@ -0,0 +1,11 @@
+package com.baeldung.service;
+
+import org.springframework.stereotype.Service;
+
+@Service
+public class SimpleService {
+
+ public String enrichName(String name) {
+ return "-:: " + name + " ::-";
+ }
+}
diff --git a/mapstruct/src/test/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedIntegrationTest.java b/mapstruct/src/test/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedIntegrationTest.java
new file mode 100644
index 0000000000..3bfbc60de6
--- /dev/null
+++ b/mapstruct/src/test/java/com/baeldung/mapper/SimpleDestinationMapperUsingInjectedIntegrationTest.java
@@ -0,0 +1,35 @@
+package com.baeldung.mapper;
+
+import com.baeldung.dto.SimpleSource;
+import com.baeldung.entity.SimpleDestination;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@ContextConfiguration("classpath:applicationContext.xml")
+public class SimpleDestinationMapperUsingInjectedIntegrationTest {
+
+ @Autowired
+ private SimpleDestinationMapperUsingInjectedService mapper;
+
+ @Test
+ public void givenSourceToDestination_whenMaps_thenNameEnriched() {
+ // Given
+ SimpleSource source = new SimpleSource();
+ source.setName("Bob");
+ source.setDescription("The Builder");
+
+ // When
+ SimpleDestination destination = mapper.sourceToDestination(source);
+
+ // Then
+ assertThat(destination).isNotNull();
+ assertThat(destination.getName()).isEqualTo("-:: Bob ::-");
+ assertThat(destination.getDescription()).isEqualTo("The Builder");
+ }
+}
\ No newline at end of file
diff --git a/maven-modules/maven-copy-files/README.md b/maven-modules/maven-copy-files/README.md
new file mode 100644
index 0000000000..1e3a75cb0b
--- /dev/null
+++ b/maven-modules/maven-copy-files/README.md
@@ -0,0 +1,3 @@
+### Relevant Articles:
+
+- [Copying Files With Maven](https://www.baeldung.com/maven-copy-files)
diff --git a/maven-modules/maven-printing-plugins/pom.xml b/maven-modules/maven-printing-plugins/pom.xml
index 6ea1ab2a84..805c3c1633 100644
--- a/maven-modules/maven-printing-plugins/pom.xml
+++ b/maven-modules/maven-printing-plugins/pom.xml
@@ -49,9 +49,11 @@
echo
- Hello, world
- Embed a line break: ${line.separator}
- ArtifactId is ${project.artifactId}
+
+ Hello, world
+ Embed a line break: ${line.separator}
+ ArtifactId is ${project.artifactId}
+
INFO
/logs/log-echo.txt
true
diff --git a/persistence-modules/java-jpa-3/README.md b/persistence-modules/java-jpa-3/README.md
index 9c9e040825..e607043880 100644
--- a/persistence-modules/java-jpa-3/README.md
+++ b/persistence-modules/java-jpa-3/README.md
@@ -10,3 +10,4 @@ This module contains articles about the Java Persistence API (JPA) in Java.
- [JPA CascadeType.REMOVE vs orphanRemoval](https://www.baeldung.com/jpa-cascade-remove-vs-orphanremoval)
- [A Guide to MultipleBagFetchException in Hibernate](https://www.baeldung.com/java-hibernate-multiplebagfetchexception)
- [How to Convert a Hibernate Proxy to a Real Entity Object](https://www.baeldung.com/hibernate-proxy-to-real-entity-object)
+- [Returning an Auto-Generated Id with JPA](https://www.baeldung.com/jpa-get-auto-generated-id)
diff --git a/persistence-modules/spring-data-jpa-annotations/README.md b/persistence-modules/spring-data-jpa-annotations/README.md
index 3892e75733..5a5440b1ed 100644
--- a/persistence-modules/spring-data-jpa-annotations/README.md
+++ b/persistence-modules/spring-data-jpa-annotations/README.md
@@ -9,6 +9,7 @@ This module contains articles about annotations used in Spring Data JPA
- [Spring JPA @Embedded and @EmbeddedId](https://www.baeldung.com/spring-jpa-embedded-method-parameters)
- [Programmatic Transaction Management in Spring](https://www.baeldung.com/spring-programmatic-transaction-management)
- [JPA Entity Lifecycle Events](https://www.baeldung.com/jpa-entity-lifecycle-events)
+- [Overriding Column Definition With @AttributeOverride](https://www.baeldung.com/jpa-attributeoverride)
### Eclipse Config
After importing the project into Eclipse, you may see the following error:
diff --git a/persistence-modules/spring-data-jpa-crud/README.md b/persistence-modules/spring-data-jpa-crud/README.md
index dc0c78c87e..81559bb773 100644
--- a/persistence-modules/spring-data-jpa-crud/README.md
+++ b/persistence-modules/spring-data-jpa-crud/README.md
@@ -10,6 +10,7 @@ This module contains articles about CRUD operations in Spring Data JPA
- [Batch Insert/Update with Hibernate/JPA](https://www.baeldung.com/jpa-hibernate-batch-insert-update)
- [Difference Between save() and saveAndFlush() in Spring Data JPA](https://www.baeldung.com/spring-data-jpa-save-saveandflush)
- [Generate Database Schema with Spring Data JPA](https://www.baeldung.com/spring-data-jpa-generate-db-schema)
+- [How to Implement a Soft Delete with Spring JPA](https://www.baeldung.com/spring-jpa-soft-delete)
### Eclipse Config
After importing the project into Eclipse, you may see the following error:
diff --git a/spring-5-reactive-client/src/test/java/com/baeldung/reactive/logging/WebClientLoggingIntegrationTest.java b/spring-5-reactive-client/src/test/java/com/baeldung/reactive/logging/WebClientLoggingIntegrationTest.java
index bb4e682481..dabfd22056 100644
--- a/spring-5-reactive-client/src/test/java/com/baeldung/reactive/logging/WebClientLoggingIntegrationTest.java
+++ b/spring-5-reactive-client/src/test/java/com/baeldung/reactive/logging/WebClientLoggingIntegrationTest.java
@@ -146,7 +146,7 @@ public class WebClientLoggingIntegrationTest {
.exchange()
.block();
- verify(mockAppender).doAppend(argThat(argument -> (((LoggingEvent) argument).getFormattedMessage()).contains("domain=.typicode.com;")));
+ verify(mockAppender).doAppend(argThat(argument -> (((LoggingEvent) argument).getFormattedMessage()).contains(sampleUrl)));
}
diff --git a/spring-boot-modules/pom.xml b/spring-boot-modules/pom.xml
index 7c94d5b7d7..53af0de315 100644
--- a/spring-boot-modules/pom.xml
+++ b/spring-boot-modules/pom.xml
@@ -70,7 +70,6 @@
spring-boot-swagger-jwt
spring-boot-testing
spring-boot-vue
- spring-boot-xml
spring-boot-actuator
spring-boot-data-2
spring-boot-react
diff --git a/spring-boot-modules/spring-boot-basic-customization-2/README.md b/spring-boot-modules/spring-boot-basic-customization-2/README.md
index bf7e4abb76..f041c1d38a 100644
--- a/spring-boot-modules/spring-boot-basic-customization-2/README.md
+++ b/spring-boot-modules/spring-boot-basic-customization-2/README.md
@@ -5,3 +5,4 @@ This module contains articles about Spring Boot customization 2
### Relevant Articles:
- [DispatcherServlet and web.xml in Spring Boot](https://www.baeldung.com/spring-boot-dispatcherservlet-web-xml)
+ - [XML Defined Beans in Spring Boot](https://www.baeldung.com/spring-boot-xml-beans)
\ No newline at end of file
diff --git a/spring-boot-modules/spring-boot-basic-customization-2/pom.xml b/spring-boot-modules/spring-boot-basic-customization-2/pom.xml
index d42a7fd3de..8c1bc22600 100644
--- a/spring-boot-modules/spring-boot-basic-customization-2/pom.xml
+++ b/spring-boot-modules/spring-boot-basic-customization-2/pom.xml
@@ -23,7 +23,10 @@
org.springframework.boot
spring-boot-starter-test
- test
+
+
+ junit
+ junit
diff --git a/spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/Pojo.java b/spring-boot-modules/spring-boot-basic-customization-2/src/main/java/com/baeldung/springbootxml/Pojo.java
similarity index 100%
rename from spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/Pojo.java
rename to spring-boot-modules/spring-boot-basic-customization-2/src/main/java/com/baeldung/springbootxml/Pojo.java
diff --git a/spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplication.java b/spring-boot-modules/spring-boot-basic-customization-2/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplication.java
similarity index 100%
rename from spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplication.java
rename to spring-boot-modules/spring-boot-basic-customization-2/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplication.java
diff --git a/spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/application.properties b/spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/application.properties
index e69de29bb2..ab9de92c82 100644
--- a/spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/application.properties
+++ b/spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/application.properties
@@ -0,0 +1 @@
+sample=string loaded from properties!
\ No newline at end of file
diff --git a/spring-boot-modules/spring-boot-xml/src/main/resources/beans.xml b/spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/beans.xml
similarity index 100%
rename from spring-boot-modules/spring-boot-xml/src/main/resources/beans.xml
rename to spring-boot-modules/spring-boot-basic-customization-2/src/main/resources/beans.xml
diff --git a/spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java b/spring-boot-modules/spring-boot-basic-customization-2/src/main/test/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java
similarity index 99%
rename from spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java
rename to spring-boot-modules/spring-boot-basic-customization-2/src/main/test/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java
index 2c3993d0d8..f3060de82a 100644
--- a/spring-boot-modules/spring-boot-xml/src/main/java/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java
+++ b/spring-boot-modules/spring-boot-basic-customization-2/src/main/test/com/baeldung/springbootxml/SpringBootXmlApplicationIntegrationTest.java
@@ -1,5 +1,6 @@
package com.baeldung.springbootxml;
+
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/spring-boot-modules/spring-boot-cassandre/README.md b/spring-boot-modules/spring-boot-cassandre/README.md
index 14ffbb7d6b..4dfef587db 100644
--- a/spring-boot-modules/spring-boot-cassandre/README.md
+++ b/spring-boot-modules/spring-boot-cassandre/README.md
@@ -8,4 +8,4 @@ This project is an example of a trading bot developed with Cassandre
* `mvn spring-boot:run` - Run the bot
## Relevant Articles
-- [Build a Trading Bot with Cassandre Spring Boot Starter](https://www.baeldung.com/build-a-trading-bot-with-cassandre-spring-boot-starter/)
+- [Build a Trading Bot with Cassandre Spring Boot Starter](https://www.baeldung.com/cassandre-spring-boot-trading-bot)
diff --git a/spring-boot-modules/spring-boot-mvc-3/README.md b/spring-boot-modules/spring-boot-mvc-3/README.md
index bc3eb9e496..f9c6989b3c 100644
--- a/spring-boot-modules/spring-boot-mvc-3/README.md
+++ b/spring-boot-modules/spring-boot-mvc-3/README.md
@@ -9,4 +9,5 @@ This module contains articles about Spring Web MVC in Spring Boot projects.
- [Spring MVC Async vs Spring WebFlux](https://www.baeldung.com/spring-mvc-async-vs-webflux)
- [Differences in @Valid and @Validated Annotations in Spring](https://www.baeldung.com/spring-valid-vs-validated)
- [CharacterEncodingFilter In SpringBoot](https://www.baeldung.com/spring-boot-characterencodingfilter)
+- [HandlerInterceptors vs. Filters in Spring MVC](https://www.baeldung.com/spring-mvc-handlerinterceptor-vs-filter)
- More articles: [[prev -->]](/spring-boot-modules/spring-boot-mvc-2)
diff --git a/spring-boot-modules/spring-boot-xml/README.md b/spring-boot-modules/spring-boot-xml/README.md
deleted file mode 100644
index 7a9a0bdc09..0000000000
--- a/spring-boot-modules/spring-boot-xml/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-### Relevant Articles:
-
-- [XML Defined Beans in Spring Boot](https://www.baeldung.com/spring-boot-xml-beans)
diff --git a/spring-boot-modules/spring-boot-xml/pom.xml b/spring-boot-modules/spring-boot-xml/pom.xml
deleted file mode 100644
index b3fd343e4f..0000000000
--- a/spring-boot-modules/spring-boot-xml/pom.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
- 4.0.0
- spring-boot-xml
-
-
- parent-boot-2
- com.baeldung
- 0.0.1-SNAPSHOT
- ../../parent-boot-2
-
-
-
-
- org.springframework.boot
- spring-boot-starter
-
-
- org.springframework.boot
- spring-boot-starter-test
-
-
- junit
- junit
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
-
\ No newline at end of file
diff --git a/spring-boot-modules/spring-boot-xml/src/main/resources/application.properties b/spring-boot-modules/spring-boot-xml/src/main/resources/application.properties
deleted file mode 100644
index ab9de92c82..0000000000
--- a/spring-boot-modules/spring-boot-xml/src/main/resources/application.properties
+++ /dev/null
@@ -1 +0,0 @@
-sample=string loaded from properties!
\ No newline at end of file
diff --git a/spring-security-modules/pom.xml b/spring-security-modules/pom.xml
index bb2702fc9d..0f4ba872ba 100644
--- a/spring-security-modules/pom.xml
+++ b/spring-security-modules/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-modules
0.0.1-SNAPSHOT
@@ -37,7 +38,7 @@
spring-security-web-mvc-custom
spring-security-web-mvc
spring-security-web-persisted-remember-me
- spring-security-web-react
+ spring-security-web-react
spring-security-web-rest-basic-auth
spring-security-web-rest-custom
spring-security-web-rest
@@ -48,4 +49,4 @@
spring-social-login
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-5-security-cognito/pom.xml b/spring-security-modules/spring-5-security-cognito/pom.xml
index 877dbd52fa..4da8b2fae5 100644
--- a/spring-security-modules/spring-5-security-cognito/pom.xml
+++ b/spring-security-modules/spring-5-security-cognito/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-5-security-cognito
@@ -32,7 +33,6 @@
org.thymeleaf.extras
thymeleaf-extras-springsecurity5
-
org.springframework.security
@@ -62,4 +62,4 @@
com.baeldung.cognito.SpringCognitoApplication
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-5-security-oauth/pom.xml b/spring-security-modules/spring-5-security-oauth/pom.xml
index d31cf293a3..03e1880431 100644
--- a/spring-security-modules/spring-5-security-oauth/pom.xml
+++ b/spring-security-modules/spring-5-security-oauth/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-5-security-oauth
@@ -36,7 +37,6 @@
org.springframework.boot
spring-boot-starter-jersey
-
org.springframework.security.oauth.boot
@@ -51,7 +51,6 @@
org.springframework.security
spring-security-oauth2-jose
-
org.springframework
spring-test
@@ -72,4 +71,4 @@
com.baeldung.oauth2.SpringOAuthApplication
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-5-security/pom.xml b/spring-security-modules/spring-5-security/pom.xml
index d009115c92..73b956d1e7 100644
--- a/spring-security-modules/spring-5-security/pom.xml
+++ b/spring-security-modules/spring-5-security/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-5-security
0.0.1-SNAPSHOT
@@ -76,4 +77,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-ldap/pom.xml b/spring-security-modules/spring-ldap/pom.xml
index 60da7d4c0d..44f754673f 100644
--- a/spring-security-modules/spring-ldap/pom.xml
+++ b/spring-security-modules/spring-ldap/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-ldap
0.1-SNAPSHOT
@@ -14,7 +15,6 @@
-
org.springframework.ldap
spring-ldap-core
@@ -26,13 +26,11 @@
-
org.springframework
spring-context
${spring-context.version}
-
org.springframework.ldap
@@ -46,7 +44,6 @@
-
org.apache.directory.server
@@ -84,8 +81,6 @@
${shared-ldap.version}
test
-
-
org.springframework.data
diff --git a/spring-security-modules/spring-security-acl/pom.xml b/spring-security-modules/spring-security-acl/pom.xml
index 5c04aaa9ca..7facc1b14b 100644
--- a/spring-security-modules/spring-security-acl/pom.xml
+++ b/spring-security-modules/spring-security-acl/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-acl
0.0.1-SNAPSHOT
@@ -58,4 +59,4 @@
2.6.11
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-auth0/pom.xml b/spring-security-modules/spring-security-auth0/pom.xml
index 0bd879a40b..106a0db29f 100644
--- a/spring-security-modules/spring-security-auth0/pom.xml
+++ b/spring-security-modules/spring-security-auth0/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-auth0
1.0-SNAPSHOT
@@ -23,20 +24,20 @@
org.springframework.boot
spring-boot-starter-security
-
- org.springframework.security
- spring-security-core
-
-
- org.springframework.security
- spring-security-oauth2-resource-server
-
-
- com.auth0
- mvc-auth-commons
- ${mvc-auth-commons.version}
-
-
+
+ org.springframework.security
+ spring-security-core
+
+
+ org.springframework.security
+ spring-security-oauth2-resource-server
+
+
+ com.auth0
+ mvc-auth-commons
+ ${mvc-auth-commons.version}
+
+
org.json
json
${json.version}
@@ -72,4 +73,5 @@
20190722
1.2.0
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-config/cache-control/pom.xml b/spring-security-modules/spring-security-config/cache-control/pom.xml
index 753307493d..b10d65615e 100644
--- a/spring-security-modules/spring-security-config/cache-control/pom.xml
+++ b/spring-security-modules/spring-security-config/cache-control/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
cache-control
1.0-SNAPSHOT
@@ -26,7 +27,6 @@
org.springframework.boot
spring-boot-starter-security
-
org.springframework.boot
spring-boot-starter-test
diff --git a/spring-security-modules/spring-security-config/cors/pom.xml b/spring-security-modules/spring-security-config/cors/pom.xml
index 175b21a77d..2b8efb9add 100644
--- a/spring-security-modules/spring-security-config/cors/pom.xml
+++ b/spring-security-modules/spring-security-config/cors/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
cors
cors
@@ -35,7 +36,6 @@
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-test
@@ -57,4 +57,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-config/pom.xml b/spring-security-modules/spring-security-config/pom.xml
index 2b6b6b6b4e..860a602aeb 100644
--- a/spring-security-modules/spring-security-config/pom.xml
+++ b/spring-security-modules/spring-security-config/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-config
0.0.1-SNAPSHOT
@@ -19,4 +20,4 @@
cors
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-core/pom.xml b/spring-security-modules/spring-security-core/pom.xml
index 9f1e7cda29..0eb70c0853 100644
--- a/spring-security-modules/spring-security-core/pom.xml
+++ b/spring-security-modules/spring-security-core/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-core
@@ -99,4 +100,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-ldap/pom.xml b/spring-security-modules/spring-security-ldap/pom.xml
index baed682186..3755c33125 100644
--- a/spring-security-modules/spring-security-ldap/pom.xml
+++ b/spring-security-modules/spring-security-ldap/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-ldap
0.1-SNAPSHOT
@@ -15,7 +16,6 @@
-
org.springframework.boot
@@ -33,24 +33,21 @@
org.springframework.boot
spring-boot-starter-actuator
-
org.springframework.security
spring-security-ldap
-
org.apache.directory.server
apacheds-server-jndi
${apacheds.version}
-
- spring-security-mvc-ldap
+ spring-security-ldap
src/main/resources
@@ -63,4 +60,4 @@
1.5.5
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-legacy-oidc/pom.xml b/spring-security-modules/spring-security-legacy-oidc/pom.xml
index a4ead0f6e0..148b836137 100644
--- a/spring-security-modules/spring-security-legacy-oidc/pom.xml
+++ b/spring-security-modules/spring-security-legacy-oidc/pom.xml
@@ -24,24 +24,20 @@
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-tomcat
-
org.springframework.security.oauth
spring-security-oauth2
${spring-security-oauth2.version}
-
org.springframework.security
spring-security-jwt
${spring-security-jwt.version}
-
com.auth0
jwks-rsa
@@ -55,4 +51,4 @@
0.3.0
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oauth2-sso/pom.xml b/spring-security-modules/spring-security-oauth2-sso/pom.xml
index a272ba5b50..c9f9274c98 100644
--- a/spring-security-modules/spring-security-oauth2-sso/pom.xml
+++ b/spring-security-modules/spring-security-oauth2-sso/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
com.baeldung
spring-security-oauth2-sso
@@ -30,4 +31,4 @@
2.0.0-M2
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-auth-server/pom.xml b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-auth-server/pom.xml
index 20a43eaf04..1a8d1b580f 100644
--- a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-auth-server/pom.xml
+++ b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-auth-server/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-sso-auth-server
spring-security-sso-auth-server
@@ -24,4 +25,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-kerberos/pom.xml b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-kerberos/pom.xml
index f17ca171a5..c18769df1e 100644
--- a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-kerberos/pom.xml
+++ b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-kerberos/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-security-sso-kerberos
@@ -91,9 +91,9 @@
-
+
- com.baeldung.intro.Application
+ com.baeldung.intro.Application
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui-2/pom.xml b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui-2/pom.xml
index 514dd0d0f7..cd510a972a 100644
--- a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui-2/pom.xml
+++ b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui-2/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-sso-ui-2
spring-security-sso-ui-2
@@ -13,33 +14,27 @@
-
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-security
-
org.springframework.security.oauth.boot
spring-security-oauth2-autoconfigure
${oauth-auto.version}
-
org.springframework.boot
spring-boot-starter-thymeleaf
-
org.thymeleaf.extras
thymeleaf-extras-springsecurity5
-
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui/pom.xml b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui/pom.xml
index 5076b1878b..ec2da615f4 100644
--- a/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui/pom.xml
+++ b/spring-security-modules/spring-security-oauth2-sso/spring-security-sso-ui/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-sso-ui
spring-security-sso-ui
@@ -13,34 +14,27 @@
-
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-security
-
org.springframework.security.oauth.boot
spring-security-oauth2-autoconfigure
${oauth-auto.version}
-
-
org.springframework.boot
spring-boot-starter-thymeleaf
-
org.thymeleaf.extras
thymeleaf-extras-springsecurity5
-
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-oidc/pom.xml b/spring-security-modules/spring-security-oidc/pom.xml
index b9a4b340a3..2a413b1d27 100644
--- a/spring-security-modules/spring-security-oidc/pom.xml
+++ b/spring-security-modules/spring-security-oidc/pom.xml
@@ -26,4 +26,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-okta/pom.xml b/spring-security-modules/spring-security-okta/pom.xml
index c5ff9013b5..98b8abedb4 100644
--- a/spring-security-modules/spring-security-okta/pom.xml
+++ b/spring-security-modules/spring-security-okta/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-okta
1.0-SNAPSHOT
@@ -55,8 +56,9 @@
-
+
1.4.0
-
+
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-saml/pom.xml b/spring-security-modules/spring-security-saml/pom.xml
index 561582045a..8a9b418374 100644
--- a/spring-security-modules/spring-security-saml/pom.xml
+++ b/spring-security-modules/spring-security-saml/pom.xml
@@ -14,6 +14,7 @@
0.0.1-SNAPSHOT
../../parent-boot-2
+
Shibboleth
@@ -70,4 +71,5 @@
1.0.10.RELEASE
-
+
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-angular/server/pom.xml b/spring-security-modules/spring-security-web-angular/server/pom.xml
index 07d5d44e8d..2e9ff9969d 100644
--- a/spring-security-modules/spring-security-web-angular/server/pom.xml
+++ b/spring-security-modules/spring-security-web-angular/server/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
server
0.0.1-SNAPSHOT
@@ -40,7 +41,6 @@
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-test
@@ -62,4 +62,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-boot-1/pom.xml b/spring-security-modules/spring-security-web-boot-1/pom.xml
index 1f80b62765..a376a49b4c 100644
--- a/spring-security-modules/spring-security-web-boot-1/pom.xml
+++ b/spring-security-modules/spring-security-web-boot-1/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-security-web-boot-1
0.0.1-SNAPSHOT
@@ -223,10 +223,9 @@
com.baeldung.roles.custom.Application
-
+
-
1.1.2
1.6.1
2.6.11
diff --git a/spring-security-modules/spring-security-web-boot-2/pom.xml b/spring-security-modules/spring-security-web-boot-2/pom.xml
index ca357509a3..ade644741d 100644
--- a/spring-security-modules/spring-security-web-boot-2/pom.xml
+++ b/spring-security-modules/spring-security-web-boot-2/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-security-web-boot-2
0.0.1-SNAPSHOT
@@ -184,7 +184,6 @@
-
entryPoints
@@ -222,19 +221,18 @@
-
+
com.baeldung.multiplelogin.MultipleLoginApplication
-
+
-
+
-
1.1.2
1.6.1
2.6.11
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-boot-3/pom.xml b/spring-security-modules/spring-security-web-boot-3/pom.xml
index a6e2b48d75..1fff259c16 100644
--- a/spring-security-modules/spring-security-web-boot-3/pom.xml
+++ b/spring-security-modules/spring-security-web-boot-3/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-security-web-boot-3
0.0.1-SNAPSHOT
@@ -27,4 +27,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-digest-auth/pom.xml b/spring-security-modules/spring-security-web-digest-auth/pom.xml
index 39433c1295..710a3dd3b6 100644
--- a/spring-security-modules/spring-security-web-digest-auth/pom.xml
+++ b/spring-security-modules/spring-security-web-digest-auth/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-web-digest-auth
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -28,9 +27,7 @@
spring-security-config
${org.springframework.security.version}
-
-
org.springframework
spring-core
@@ -72,7 +69,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -83,37 +79,30 @@
spring-webmvc
${spring.version}
-
org.springframework
spring-oxm
${spring.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
-
com.google.guava
guava
${guava.version}
-
org.apache.httpcomponents
httpcore
@@ -125,7 +114,6 @@
-
org.apache.httpcomponents
httpclient
@@ -137,35 +125,28 @@
-
-
org.springframework
spring-test
${spring.version}
test
-
-
- spring-security-mvc-digest-auth
+ spring-security-web-digest-auth
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
${maven-war-plugin.version}
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -186,21 +167,16 @@
-
-
4.2.6.RELEASE
-
19.0
-
4.4.5
4.5.2
-
1.6.1
diff --git a/spring-security-modules/spring-security-web-login/pom.xml b/spring-security-modules/spring-security-web-login/pom.xml
index 2b64d157d3..ac5393c1a0 100644
--- a/spring-security-modules/spring-security-web-login/pom.xml
+++ b/spring-security-modules/spring-security-web-login/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-web-login
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -33,9 +32,7 @@
spring-security-taglibs
${spring-security.version}
-
-
org.springframework
spring-core
@@ -77,7 +74,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -88,25 +84,20 @@
spring-webmvc
${spring.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
-
org.springframework
spring-test
@@ -119,20 +110,17 @@
${spring-security.version}
test
-
- spring-security-mvc-login
+ spring-security-web-login
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
@@ -147,7 +135,6 @@
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -168,9 +155,7 @@
-
-
diff --git a/spring-security-modules/spring-security-web-mvc-custom/pom.xml b/spring-security-modules/spring-security-web-mvc-custom/pom.xml
index bd4a800bc5..539f83d7b8 100644
--- a/spring-security-modules/spring-security-web-mvc-custom/pom.xml
+++ b/spring-security-modules/spring-security-web-mvc-custom/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-web-mvc-custom
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -33,9 +32,7 @@
spring-security-taglibs
${spring-security.version}
-
-
org.springframework
spring-core
@@ -77,7 +74,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -88,59 +84,48 @@
spring-webmvc
${spring.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
-
-
com.fasterxml.jackson.core
jackson-databind
${jackson.version}
-
org.apache.commons
commons-lang3
${commons-lang3.version}
-
com.google.guava
guava
${guava.version}
-
-
org.springframework
spring-test
${spring.version}
test
-
org.springframework.security
spring-security-test
@@ -150,22 +135,19 @@
- spring-security-mvc-custom
+ spring-security-web-mvc-custom
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
${maven-war-plugin.version}
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -186,18 +168,14 @@
-
-
19.0
-
1.6.1
-
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-mvc/pom.xml b/spring-security-modules/spring-security-web-mvc/pom.xml
index b1e94b2db3..505826d1a2 100644
--- a/spring-security-modules/spring-security-web-mvc/pom.xml
+++ b/spring-security-modules/spring-security-web-mvc/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-security-web-mvc
0.1-SNAPSHOT
@@ -16,9 +16,7 @@
-
-
org.springframework.boot
spring-boot-starter-security
@@ -27,7 +25,6 @@
org.springframework.security
spring-security-taglibs
-
org.springframework.boot
@@ -42,19 +39,16 @@
org.springframework.boot
spring-boot-starter-tomcat
-
javax.servlet
jstl
runtime
-
io.dropwizard.metrics
metrics-core
-
org.springframework.boot
@@ -67,7 +61,6 @@
${javax.version}
-
@@ -86,4 +79,4 @@
4.0.1
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-persisted-remember-me/pom.xml b/spring-security-modules/spring-security-web-persisted-remember-me/pom.xml
index 25c5ddd9d0..66a2b3866b 100644
--- a/spring-security-modules/spring-security-web-persisted-remember-me/pom.xml
+++ b/spring-security-modules/spring-security-web-persisted-remember-me/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-web-persisted-remember-me
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -38,9 +37,7 @@
spring-orm
${spring.version}
-
-
org.springframework
spring-core
@@ -82,7 +79,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -93,81 +89,66 @@
spring-webmvc
${spring.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
-
com.h2database
h2
${h2.version}
-
org.postgresql
postgresql
${postgresql.version}
runtime
-
-
com.google.guava
guava
${guava.version}
-
- org.springframework.boot
- spring-boot-starter-test
- ${spring-boot.version}
- test
-
-
+ org.springframework.boot
+ spring-boot-starter-test
+ ${spring-boot.version}
+ test
+
-
-
- spring-security-mvc-persisted-remember-me
+ spring-security-web-persisted-remember-me
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
${maven-war-plugin.version}
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -188,21 +169,16 @@
-
-
4.2.6.RELEASE
-
9.4.1212
-
19.0
-
1.6.1
1.5.10.RELEASE
diff --git a/spring-security-modules/spring-security-web-react/pom.xml b/spring-security-modules/spring-security-web-react/pom.xml
index 663c7d76c3..e8f74413ff 100644
--- a/spring-security-modules/spring-security-web-react/pom.xml
+++ b/spring-security-modules/spring-security-web-react/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-react
0.1-SNAPSHOT
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -33,9 +32,7 @@
spring-security-taglibs
${spring-security.version}
-
-
org.springframework
spring-core
@@ -56,7 +53,6 @@
spring-aop
${spring.version}
-
org.springframework
spring-web
@@ -67,9 +63,7 @@
spring-webmvc
${spring.version}
-
-
javax.servlet
javax.servlet-api
@@ -82,7 +76,6 @@
${jstl.version}
runtime
-
org.springframework.boot
@@ -90,20 +83,17 @@
1.5.10.RELEASE
test
-
- spring-security-react
+ spring-security-web-react
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
@@ -118,7 +108,6 @@
-
com.github.eirslett
frontend-maven-plugin
@@ -152,27 +141,22 @@
-
org.eclipse.jetty
jetty-maven-plugin
9.4.11.v20180605
-
-
default-first
-
com.github.eirslett
frontend-maven-plugin
-
install node and npm
@@ -193,13 +177,11 @@
default-second
-
com.github.eirslett
frontend-maven-plugin
-
install node and npm
@@ -223,14 +205,13 @@
19.0
-
2.7
1.6
9.4.11.v20180605
-
v8.11.3
6.1.0
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-rest-basic-auth/pom.xml b/spring-security-modules/spring-security-web-rest-basic-auth/pom.xml
index 0dc0b9cc42..de28df1933 100644
--- a/spring-security-modules/spring-security-web-rest-basic-auth/pom.xml
+++ b/spring-security-modules/spring-security-web-rest-basic-auth/pom.xml
@@ -1,5 +1,6 @@
-
4.0.0
spring-security-web-rest-basic-auth
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -28,9 +27,7 @@
spring-security-config
${spring-security.version}
-
-
org.springframework
spring-core
@@ -72,7 +69,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -83,23 +79,18 @@
spring-webmvc
${spring.version}
-
org.springframework
spring-oxm
${spring.version}
-
-
com.fasterxml.jackson.core
jackson-databind
${jackson.version}
-
-
@@ -111,7 +102,6 @@
-
org.apache.httpcomponents
httpcore
@@ -123,7 +113,6 @@
-
org.apache.httpcomponents
httpclient
@@ -135,59 +124,48 @@
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
-
com.google.guava
guava
${guava.version}
-
-
org.springframework
spring-test
${spring.version}
test
-
- spring-security-rest-basic-auth
+ spring-security-web-rest-basic-auth
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
${maven-war-plugin.version}
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -208,9 +186,7 @@
-
-
@@ -238,7 +214,6 @@
-
org.apache.maven.plugins
maven-surefire-plugin
@@ -262,21 +237,17 @@
-
-
4.4.11
4.5.8
-
19.0
-
1.6.1
diff --git a/spring-security-modules/spring-security-web-rest-custom/pom.xml b/spring-security-modules/spring-security-web-rest-custom/pom.xml
index 0ba7f95de7..85e50412ad 100644
--- a/spring-security-modules/spring-security-web-rest-custom/pom.xml
+++ b/spring-security-modules/spring-security-web-rest-custom/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-rest-custom
0.1-SNAPSHOT
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -34,9 +33,7 @@
org.thymeleaf
thymeleaf-spring5
-
-
org.springframework
spring-core
@@ -65,7 +62,6 @@
org.springframework
spring-expression
-
org.springframework
spring-web
@@ -74,53 +70,41 @@
org.springframework
spring-webmvc
-
org.springframework
spring-oxm
-
commons-logging
commons-logging
${commons-logging.version}
-
-
com.fasterxml.jackson.core
jackson-databind
-
-
javax.servlet
javax.servlet-api
provided
-
javax.servlet
jstl
runtime
-
-
org.apache.httpcomponents
httpcore
-
org.apache.httpcomponents
httpclient
-
-
com.google.guava
guava
@@ -131,32 +115,27 @@
commons-lang3
${commons-lang3.version}
-
-
org.hamcrest
hamcrest
test
-
org.mockito
mockito-core
test
-
- spring-security-rest-custom
+ spring-security-web-rest-custom
src/main/resources
true
-
org.springframework.boot
@@ -172,7 +151,6 @@
false
-
org.codehaus.cargo
cargo-maven2-plugin
@@ -193,16 +171,13 @@
-
-
19.0
1.2
-
1.6.1
diff --git a/spring-security-modules/spring-security-web-rest/pom.xml b/spring-security-modules/spring-security-web-rest/pom.xml
index 2330243aa6..c3f2c09e9e 100644
--- a/spring-security-modules/spring-security-web-rest/pom.xml
+++ b/spring-security-modules/spring-security-web-rest/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-rest
0.1-SNAPSHOT
@@ -15,9 +16,7 @@
-
-
org.springframework.security
spring-security-web
@@ -28,9 +27,7 @@
spring-security-config
${spring-security.version}
-
-
org.springframework
spring-core
@@ -72,7 +69,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -83,37 +79,30 @@
spring-webmvc
${spring.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
javax.validation
validation-api
${javax.validation.version}
-
-
com.fasterxml.jackson.core
jackson-databind
${jackson.version}
-
com.google.guava
@@ -125,7 +114,6 @@
commons-lang3
${commons-lang3.version}
-
org.springframework
@@ -133,15 +121,12 @@
${spring.version}
test
-
org.springframework.security
spring-security-test
${spring-security.version}
test
-
-
com.jayway.restassured
rest-assured
@@ -154,37 +139,32 @@
-
io.springfox
springfox-swagger2
${springfox-swagger.version}
-
io.springfox
springfox-swagger-ui
${springfox-swagger.version}
-
commons-fileupload
commons-fileupload
${commons-fileupload.version}
-
- spring-security-rest
+ spring-security-web-rest
src/main/resources
true
-
org.codehaus.cargo
@@ -205,9 +185,7 @@
-
-
@@ -235,7 +213,6 @@
-
org.apache.maven.plugins
maven-surefire-plugin
@@ -267,18 +244,14 @@
1.1.0.Final
-
26.0-jre
-
2.9.0
-
2.9.2
-
1.6.1
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-sockets/pom.xml b/spring-security-modules/spring-security-web-sockets/pom.xml
index 4aecf296b4..e822b6beda 100644
--- a/spring-security-modules/spring-security-web-sockets/pom.xml
+++ b/spring-security-modules/spring-security-web-sockets/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
com.baeldung.springsecuredsockets
spring-security-web-sockets
@@ -50,7 +51,6 @@
-
org.springframework.security
@@ -62,7 +62,6 @@
spring-security-config
${spring-security.version}
-
org.springframework.data
@@ -79,7 +78,6 @@
h2
${h2.version}
-
org.springframework
@@ -96,7 +94,6 @@
spring-security-messaging
${spring-security.version}
-
org.slf4j
@@ -108,7 +105,6 @@
logback-classic
${logback-classic.version}
-
javax.servlet
@@ -130,7 +126,6 @@
jstl
${jstl.version}
-
com.fasterxml.jackson.core
@@ -147,7 +142,6 @@
jackson-annotations
${jackson.version}
-
org.springframework.boot
@@ -158,7 +152,7 @@
- spring-security-mvc-socket
+ spring-security-web-sockets
org.apache.tomcat.maven
diff --git a/spring-security-modules/spring-security-web-thymeleaf/pom.xml b/spring-security-modules/spring-security-web-thymeleaf/pom.xml
index 196ec0b86f..8e6e0856af 100644
--- a/spring-security-modules/spring-security-web-thymeleaf/pom.xml
+++ b/spring-security-modules/spring-security-web-thymeleaf/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-thymeleaf
0.0.1-SNAPSHOT
@@ -54,4 +55,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-x509/pom.xml b/spring-security-modules/spring-security-web-x509/pom.xml
index 045c0aba6a..5282ab7d83 100644
--- a/spring-security-modules/spring-security-web-x509/pom.xml
+++ b/spring-security-modules/spring-security-web-x509/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-x509
0.0.1-SNAPSHOT
@@ -34,4 +35,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-x509/spring-security-web-x509-basic-auth/pom.xml b/spring-security-modules/spring-security-web-x509/spring-security-web-x509-basic-auth/pom.xml
index 917ffa6b0e..9598843b63 100644
--- a/spring-security-modules/spring-security-web-x509/spring-security-web-x509-basic-auth/pom.xml
+++ b/spring-security-modules/spring-security-web-x509/spring-security-web-x509-basic-auth/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-x509-basic-auth
0.0.1-SNAPSHOT
@@ -35,4 +36,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-security-web-x509/spring-security-web-x509-client-auth/pom.xml b/spring-security-modules/spring-security-web-x509/spring-security-web-x509-client-auth/pom.xml
index fdbc90c0f6..f310ab1e5c 100644
--- a/spring-security-modules/spring-security-web-x509/spring-security-web-x509-client-auth/pom.xml
+++ b/spring-security-modules/spring-security-web-x509/spring-security-web-x509-client-auth/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-security-web-x509-client-auth
0.0.1-SNAPSHOT
@@ -71,4 +72,4 @@
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-session/pom.xml b/spring-security-modules/spring-session/pom.xml
index ac10700240..aec64da088 100644
--- a/spring-security-modules/spring-session/pom.xml
+++ b/spring-security-modules/spring-session/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
com.baeldung
spring-session
@@ -21,4 +22,4 @@
spring-session-mongodb
-
+
\ No newline at end of file
diff --git a/spring-security-modules/spring-session/spring-session-jdbc/pom.xml b/spring-security-modules/spring-session/spring-session-jdbc/pom.xml
index 95c366fc2e..64bbce44f2 100644
--- a/spring-security-modules/spring-session/spring-session-jdbc/pom.xml
+++ b/spring-security-modules/spring-session/spring-session-jdbc/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-session-jdbc
0.0.1-SNAPSHOT
diff --git a/spring-security-modules/spring-session/spring-session-mongodb/pom.xml b/spring-security-modules/spring-session/spring-session-mongodb/pom.xml
index 82c8520356..878dfeb690 100644
--- a/spring-security-modules/spring-session/spring-session-mongodb/pom.xml
+++ b/spring-security-modules/spring-session/spring-session-mongodb/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-session-mongodb
0.0.1-SNAPSHOT
@@ -21,23 +21,19 @@
org.springframework.boot
spring-boot-starter-web
-
org.springframework.session
spring-session-data-mongodb
-
org.springframework.boot
spring-boot-starter-data-mongodb
-
org.springframework.boot
spring-boot-starter-test
test
-
de.flapdoodle.embed
de.flapdoodle.embed.mongo
diff --git a/spring-security-modules/spring-session/spring-session-redis/pom.xml b/spring-security-modules/spring-session/spring-session-redis/pom.xml
index 36eb632e1c..6824a3632d 100644
--- a/spring-security-modules/spring-session/spring-session-redis/pom.xml
+++ b/spring-security-modules/spring-session/spring-session-redis/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-session-redis
1.0.0-SNAPSHOT
@@ -36,7 +37,7 @@
embedded-redis
${embedded-redis.version}
-
+
redis.clients
jedis
jar
diff --git a/spring-security-modules/spring-social-login/pom.xml b/spring-security-modules/spring-social-login/pom.xml
index 209a546a5a..ad4b7c72a6 100644
--- a/spring-security-modules/spring-social-login/pom.xml
+++ b/spring-security-modules/spring-social-login/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-social-login
spring-social-login
@@ -14,68 +15,54 @@
-
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-thymeleaf
-
org.springframework.security
spring-security-web
-
org.springframework.security
spring-security-config
-
org.springframework.security
spring-security-taglibs
-
org.thymeleaf.extras
thymeleaf-extras-springsecurity5
-
-
org.springframework.social
spring-social-facebook
${spring.social.facebook.version}
-
org.springframework.boot
spring-boot-starter-data-jpa
-
com.h2database
h2
-
-
org.springframework
spring-test
test
-
org.apache.commons
commons-lang3
${commons-lang3.version}
-
@@ -86,7 +73,6 @@
true
-
org.apache.maven.plugins
@@ -94,7 +80,7 @@
-
+
2.0.3.RELEASE
diff --git a/spring-shell/pom.xml b/spring-shell/pom.xml
index be1562b942..4e64436486 100644
--- a/spring-shell/pom.xml
+++ b/spring-shell/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-shell
0.1-SNAPSHOT
@@ -26,4 +27,4 @@
1.2.0.RELEASE
-
+
\ No newline at end of file
diff --git a/spring-sleuth/pom.xml b/spring-sleuth/pom.xml
index c37086558d..5fd109e968 100644
--- a/spring-sleuth/pom.xml
+++ b/spring-sleuth/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-sleuth
1.0.0-SNAPSHOT
@@ -41,4 +42,4 @@
2.0.2.RELEASE
-
+
\ No newline at end of file
diff --git a/spring-soap/pom.xml b/spring-soap/pom.xml
index bea3d033e6..8188178d61 100644
--- a/spring-soap/pom.xml
+++ b/spring-soap/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-soap
1.0.0
@@ -37,7 +38,6 @@
org.springframework.boot
spring-boot-maven-plugin
-
org.codehaus.mojo
@@ -58,7 +58,6 @@
-
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
@@ -84,4 +83,4 @@
-
+
\ No newline at end of file
diff --git a/spring-spel/pom.xml b/spring-spel/pom.xml
index 2109117a86..9ea51cd796 100644
--- a/spring-spel/pom.xml
+++ b/spring-spel/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-spel
1.0-SNAPSHOT
diff --git a/spring-state-machine/pom.xml b/spring-state-machine/pom.xml
index acb14a7613..bc2b67cc38 100644
--- a/spring-state-machine/pom.xml
+++ b/spring-state-machine/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-state-machine
spring-state-machine
diff --git a/spring-static-resources/pom.xml b/spring-static-resources/pom.xml
index 662c757f54..2841da9028 100644
--- a/spring-static-resources/pom.xml
+++ b/spring-static-resources/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-static-resources
0.1.0-SNAPSHOT
@@ -31,7 +32,6 @@
spring-security-taglibs
${spring-security.version}
-
org.springframework
@@ -74,7 +74,6 @@
spring-expression
${spring.version}
-
org.springframework
spring-web
@@ -85,7 +84,6 @@
spring-webmvc
${spring.version}
-
org.aspectj
@@ -97,7 +95,6 @@
javax.inject
${inject.version}
-
javax.servlet
@@ -119,41 +116,35 @@
jackson-databind
${jackson.version}
-
org.hibernate
hibernate-validator
${hibernate-validator.version}
-
joda-time
joda-time
${joda-time.version}
-
com.github.jknack
handlebars
${handlebars.version}
-
commons-io
commons-io
${commons-io.version}
-
org.springframework
spring-test
${spring.version}
test
-
@@ -204,14 +195,12 @@
1.8.9
2.3.2-b02
-
6.0.10.Final
4.1.0
2.10
4.0.1
1
-
1.5.1
diff --git a/spring-swagger-codegen/pom.xml b/spring-swagger-codegen/pom.xml
index 39d8902956..93cb51d07c 100644
--- a/spring-swagger-codegen/pom.xml
+++ b/spring-swagger-codegen/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-swagger-codegen
0.0.1-SNAPSHOT
@@ -19,4 +20,4 @@
spring-swagger-codegen-app
-
+
\ No newline at end of file
diff --git a/spring-swagger-codegen/spring-openapi-generator-api-client/pom.xml b/spring-swagger-codegen/spring-openapi-generator-api-client/pom.xml
index 3074849e4c..c3e694ba80 100644
--- a/spring-swagger-codegen/spring-openapi-generator-api-client/pom.xml
+++ b/spring-swagger-codegen/spring-openapi-generator-api-client/pom.xml
@@ -1,5 +1,6 @@
-
+
4.0.0
com.baeldung
spring-openapi-generator-api-client
@@ -13,7 +14,6 @@
scm:git:git@github.com:openapitools/openapi-generator.git
https://github.com/openapitools/openapi-generator
-
Unlicense
@@ -21,7 +21,6 @@
repo
-
OpenAPI-Generator Contributors
@@ -31,51 +30,24 @@
-
-
- sign-artifacts
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.5
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
-
-
-
-
io.swagger
swagger-annotations
${swagger-annotations-version}
-
com.google.code.findbugs
jsr305
3.0.2
-
org.springframework
spring-web
${spring-web-version}
-
com.fasterxml.jackson.core
@@ -102,17 +74,16 @@
jackson-databind-nullable
${jackson-databind-nullable-version}
-
- com.fasterxml.jackson.datatype
- jackson-datatype-jsr310
- ${jackson-version}
-
-
- com.github.joschi.jackson
- jackson-datatype-threetenbp
- ${jackson-threetenbp-version}
-
-
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-version}
+
+
+ com.github.joschi.jackson
+ jackson-datatype-threetenbp
+ ${jackson-threetenbp-version}
+
junit
@@ -174,7 +145,6 @@
-
org.apache.maven.plugins
@@ -191,7 +161,6 @@
-
org.codehaus.mojo
build-helper-maven-plugin
@@ -228,8 +197,8 @@
maven-compiler-plugin
3.6.1
-
- 1.8
+
+ 1.8
@@ -261,14 +230,39 @@
+
+
+ sign-artifacts
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
+
1.5.22
4.3.9.RELEASE
2.11.1
-
+
0.2.1
2.9.10
1.0.0
4.13
-
+
+
\ No newline at end of file
diff --git a/spring-swagger-codegen/spring-swagger-codegen-api-client/pom.xml b/spring-swagger-codegen/spring-swagger-codegen-api-client/pom.xml
index b9b97139d6..c9ba912feb 100644
--- a/spring-swagger-codegen/spring-swagger-codegen-api-client/pom.xml
+++ b/spring-swagger-codegen/spring-swagger-codegen-api-client/pom.xml
@@ -1,19 +1,18 @@
-
+
4.0.0
spring-swagger-codegen-api-client
spring-swagger-codegen-api-client
jar
https://github.com/swagger-api/swagger-codegen
Swagger Java
-
scm:git:git@github.com:swagger-api/swagger-codegen.git
scm:git:git@github.com:swagger-api/swagger-codegen.git
https://github.com/swagger-api/swagger-codegen
-
Unlicense
@@ -21,7 +20,6 @@
repo
-
Swagger
@@ -44,14 +42,12 @@
swagger-annotations
${swagger-annotations-version}
-
org.springframework
spring-web
${spring-web-version}
-
com.fasterxml.jackson.core
@@ -103,7 +99,6 @@
-
org.codehaus.mojo
build-helper-maven-plugin
@@ -199,4 +194,4 @@
1.10
-
+
\ No newline at end of file
diff --git a/spring-swagger-codegen/spring-swagger-codegen-app/pom.xml b/spring-swagger-codegen/spring-swagger-codegen-app/pom.xml
index cb3fe89c8f..493b7201ee 100644
--- a/spring-swagger-codegen/spring-swagger-codegen-app/pom.xml
+++ b/spring-swagger-codegen/spring-swagger-codegen-app/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-swagger-codegen-app
spring-swagger-codegen-app
@@ -46,4 +47,4 @@
1.5.10.RELEASE
-
+
\ No newline at end of file
diff --git a/spring-threads/pom.xml b/spring-threads/pom.xml
index 4513c627b9..31984bfbf5 100644
--- a/spring-threads/pom.xml
+++ b/spring-threads/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-threads
0.0.1-SNAPSHOT
@@ -22,4 +23,4 @@
-
+
\ No newline at end of file
diff --git a/spring-vault/pom.xml b/spring-vault/pom.xml
index a39c5575a9..759de80a6b 100644
--- a/spring-vault/pom.xml
+++ b/spring-vault/pom.xml
@@ -1,7 +1,7 @@
-
+
4.0.0
spring-vault
0.0.1-SNAPSHOT
@@ -41,4 +41,4 @@
2.1.1.RELEASE
-
+
\ No newline at end of file
diff --git a/spring-vertx/pom.xml b/spring-vertx/pom.xml
index ef169c9a27..bd2dfa6cf6 100644
--- a/spring-vertx/pom.xml
+++ b/spring-vertx/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-vertx
spring-vertx
@@ -29,13 +30,11 @@
-
io.vertx
vertx-web
${vertx.version}
-
com.h2database
h2
@@ -61,4 +60,4 @@
3.4.1
-
+
\ No newline at end of file
diff --git a/spring-web-modules/pom.xml b/spring-web-modules/pom.xml
index ca96dcff35..e498185c5e 100644
--- a/spring-web-modules/pom.xml
+++ b/spring-web-modules/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-web-modules
0.0.1-SNAPSHOT
@@ -18,7 +19,7 @@
spring-mvc-basics
spring-mvc-basics-2
spring-mvc-basics-3
- spring-mvc-basics-4
+ spring-mvc-basics-4
spring-mvc-crash
spring-mvc-forms-jsp
spring-mvc-forms-thymeleaf
@@ -44,4 +45,4 @@
spring-boot-jsp
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-5-mvc/pom.xml b/spring-web-modules/spring-5-mvc/pom.xml
index ddcce8207b..79a4f73ace 100644
--- a/spring-web-modules/spring-5-mvc/pom.xml
+++ b/spring-web-modules/spring-5-mvc/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-5-mvc
spring-5-mvc
@@ -96,4 +96,4 @@
0.18
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-boot-jsp/pom.xml b/spring-web-modules/spring-boot-jsp/pom.xml
index d646b6058a..30335fcc65 100644
--- a/spring-web-modules/spring-boot-jsp/pom.xml
+++ b/spring-web-modules/spring-boot-jsp/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-boot-jsp
0.0.1-SNAPSHOT
@@ -35,8 +35,8 @@
org.apache.tomcat.embed
tomcat-embed-jasper
-
-
+
+
org.projectlombok
@@ -48,12 +48,12 @@
org.springframework.boot
spring-boot-starter-web
-
-
-
-
-
-
+
+
+
+
+
+
org.springframework.boot
spring-boot-starter-test
diff --git a/spring-web-modules/spring-mvc-basics-2/pom.xml b/spring-web-modules/spring-mvc-basics-2/pom.xml
index adc42d8db8..9136676d20 100644
--- a/spring-web-modules/spring-mvc-basics-2/pom.xml
+++ b/spring-web-modules/spring-mvc-basics-2/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-mvc-basics-2
0.0.1-SNAPSHOT
@@ -60,7 +61,6 @@
spring-tx
${spring.version}
-
org.thymeleaf
@@ -72,7 +72,6 @@
thymeleaf-spring5
${org.thymeleaf-version}
-
org.freemarker
@@ -89,21 +88,18 @@
spring-boot-starter-freemarker
${spring-boot.version}
-
org.codehaus.groovy
groovy-templates
${groovy.version}
-
de.neuland-bfi
spring-jade4j
${jade.version}
-
org.springframework
@@ -171,4 +167,4 @@
2.3.4.RELEASE
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-basics-3/pom.xml b/spring-web-modules/spring-mvc-basics-3/pom.xml
index a9245814a8..f9710ff2d1 100644
--- a/spring-web-modules/spring-mvc-basics-3/pom.xml
+++ b/spring-web-modules/spring-mvc-basics-3/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-mvc-basics-3
spring-mvc-basics-3
@@ -15,69 +16,57 @@
-
org.springframework.boot
spring-boot-starter-web
-
org.springframework.boot
spring-boot-starter-validation
-
org.springframework.boot
spring-boot-starter-test
test
-
org.springframework.boot
spring-boot-starter-thymeleaf
provided
-
org.springframework.boot
spring-boot-starter-data-jpa
-
org.springframework.boot
spring-boot-starter-mail
-
org.springframework.boot
spring-boot-starter-actuator
-
com.h2database
h2
runtime
-
javax.persistence
javax.persistence-api
${jpa.version}
-
com.google.guava
guava
${guava.version}
-
org.subethamail
subethasmtp
${subethasmtp.version}
test
-
org.apache.httpcomponents
httpclient
@@ -146,4 +135,4 @@
4.5.8
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-basics-4/pom.xml b/spring-web-modules/spring-mvc-basics-4/pom.xml
index 07dddcde0c..067d1ed3b1 100644
--- a/spring-web-modules/spring-mvc-basics-4/pom.xml
+++ b/spring-web-modules/spring-mvc-basics-4/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-mvc-basics-4
spring-mvc-basics-4
diff --git a/spring-web-modules/spring-mvc-basics/pom.xml b/spring-web-modules/spring-mvc-basics/pom.xml
index ac92c7bfe5..9fe4494393 100644
--- a/spring-web-modules/spring-mvc-basics/pom.xml
+++ b/spring-web-modules/spring-mvc-basics/pom.xml
@@ -1,7 +1,7 @@
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
spring-mvc-basics
0.1-SNAPSHOT
@@ -28,7 +28,7 @@
commons-fileupload
commons-fileupload
${commons-fileupload.version}
-
+
org.apache.tomcat.embed
@@ -60,5 +60,4 @@
-
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-crash/pom.xml b/spring-web-modules/spring-mvc-crash/pom.xml
index 9a0d97bae9..9574eff2a4 100644
--- a/spring-web-modules/spring-mvc-crash/pom.xml
+++ b/spring-web-modules/spring-mvc-crash/pom.xml
@@ -15,9 +15,7 @@
-
-
org.springframework
spring-web
@@ -28,37 +26,30 @@
spring-webmvc
${org.springframework.version}
-
-
javax.servlet
javax.servlet-api
${javax.servlet-api.version}
provided
-
javax.servlet
jstl
${jstl.version}
runtime
-
org.hibernate.validator
hibernate-validator
${hibernate-validator.version}
-
-
com.fasterxml.jackson.core
jackson-databind
${jackson.version}
-
commons-io
@@ -85,14 +76,12 @@
javax.el
${javax.el.version}
-
org.springframework.boot
spring-boot-starter-test
${spring-boot.version}
test
-
org.crashub
@@ -115,7 +104,6 @@
-
org.codehaus.groovy
@@ -125,52 +113,41 @@
- spring-mvc-xml
+ spring-mvc-crash
src/main/resources
true
-
-
org.apache.maven.plugins
maven-war-plugin
${maven-war-plugin.version}
-
-
5.0.2.RELEASE
1.5.10.RELEASE
-
5.1.40
-
4.4.5
4.5.2
-
6.0.10.Final
3.0.1-b08
-
19.0
2.8.0
-
1.6.1
-
1.3.2
3.0.0-rc-3
-
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-forms-jsp/pom.xml b/spring-web-modules/spring-mvc-forms-jsp/pom.xml
index 0ca23bd6cb..94eb51a32d 100644
--- a/spring-web-modules/spring-mvc-forms-jsp/pom.xml
+++ b/spring-web-modules/spring-mvc-forms-jsp/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
0.1-SNAPSHOT
spring-mvc-forms-jsp
@@ -91,7 +92,7 @@
- spring-mvc-forms
+ spring-mvc-forms-jsp
@@ -102,5 +103,4 @@
6.0.6
-
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-forms-thymeleaf/pom.xml b/spring-web-modules/spring-mvc-forms-thymeleaf/pom.xml
index 641f64b93c..37bcee0b8d 100644
--- a/spring-web-modules/spring-mvc-forms-thymeleaf/pom.xml
+++ b/spring-web-modules/spring-mvc-forms-thymeleaf/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
spring-mvc-forms-thymeleaf
spring-mvc-forms-thymeleaf
@@ -23,6 +24,10 @@
org.springframework.boot
spring-boot-starter-thymeleaf
+
+ org.projectlombok
+ lombok
+
@@ -42,4 +47,4 @@
com.baeldung.sessionattrs.SessionAttrsApplication
-
+
\ No newline at end of file
diff --git a/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/Employee.java b/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/Employee.java
new file mode 100644
index 0000000000..0bc600dd6a
--- /dev/null
+++ b/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/Employee.java
@@ -0,0 +1,16 @@
+package com.baeldung.multipartupload;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.springframework.web.multipart.MultipartFile;
+
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@Builder
+public class Employee {
+ private String name;
+ private MultipartFile document;
+}
diff --git a/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/EmployeeController.java b/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/EmployeeController.java
new file mode 100644
index 0000000000..e02844233e
--- /dev/null
+++ b/spring-web-modules/spring-mvc-forms-thymeleaf/src/main/java/com/baeldung/multipartupload/EmployeeController.java
@@ -0,0 +1,49 @@
+package com.baeldung.multipartupload;
+
+import lombok.AllArgsConstructor;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RequestPart;
+import org.springframework.web.multipart.MultipartFile;
+
+import static org.springframework.web.bind.annotation.RequestMethod.POST;
+
+@Controller
+@AllArgsConstructor
+public class EmployeeController {
+
+ private final EmployeeService employeeService;
+
+ @GetMapping(value = "/employee")
+ public String showEmployeeForm(Model model) {
+ model.addAttribute("employee", new Employee());
+ return "employee/createEmployeeForm";
+ }
+
+ @RequestMapping(path = "/employee", method = POST, consumes = { MediaType.MULTIPART_FORM_DATA_VALUE })
+ public String saveEmployee(@ModelAttribute Employee employee) {
+ employeeService.save(employee);
+ return "employee/success";
+ }
+
+ @RequestMapping(path = "/requestpart/employee", method = POST, consumes = { MediaType.MULTIPART_FORM_DATA_VALUE })
+ public ResponseEntity