diff --git a/core-java-8/pom.xml b/core-java-8/pom.xml index 1dfa01e513..0e317e7a94 100644 --- a/core-java-8/pom.xml +++ b/core-java-8/pom.xml @@ -1,5 +1,4 @@ - + 4.0.0 org.baeldung spring-rest @@ -11,10 +10,16 @@ + + commons-io + commons-io + 2.4 + + com.google.guava guava - 17.0 + ${guava.version} @@ -121,7 +126,7 @@ 5.1.1.Final - 17.0 + 18.0 3.3.2 diff --git a/core-java-8/src/test/java/org/baeldung/java8/JavaFolderSizeTest.java b/core-java-8/src/test/java/org/baeldung/java8/JavaFolderSizeTest.java index 2b8c5a6f58..100f95190e 100644 --- a/core-java-8/src/test/java/org/baeldung/java8/JavaFolderSizeTest.java +++ b/core-java-8/src/test/java/org/baeldung/java8/JavaFolderSizeTest.java @@ -17,7 +17,6 @@ import java.util.stream.StreamSupport; import org.apache.commons.io.FileUtils; import org.junit.Test; - public class JavaFolderSizeTest { @Test diff --git a/core-java/pom.xml b/core-java/pom.xml index d7632e401c..d0f74f8b45 100644 --- a/core-java/pom.xml +++ b/core-java/pom.xml @@ -145,12 +145,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 2.4.2 @@ -172,9 +172,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/gson/pom.xml b/gson/pom.xml index 052994528c..12af51ce10 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -114,12 +114,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 2.3 @@ -141,9 +141,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/guava/pom.xml b/guava/pom.xml index aabdf687e2..dbdbcdd514 100644 --- a/guava/pom.xml +++ b/guava/pom.xml @@ -94,12 +94,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -118,9 +118,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/handling-spring-static-resources/pom.xml b/handling-spring-static-resources/pom.xml index 2a78e4cc98..bc9f6c0be6 100644 --- a/handling-spring-static-resources/pom.xml +++ b/handling-spring-static-resources/pom.xml @@ -179,12 +179,12 @@ 2.3.2-b01 - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.6.2.RELEASE @@ -208,9 +208,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/httpclient/pom.xml b/httpclient/pom.xml index 38e8f56dcd..106ed3de1e 100644 --- a/httpclient/pom.xml +++ b/httpclient/pom.xml @@ -149,12 +149,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -175,7 +175,7 @@ 4.3.3 4.3.4 - 2.3.4 + 2.4.0 3.2 diff --git a/jackson/pom.xml b/jackson/pom.xml index 3e7d4515b0..654be183f1 100644 --- a/jackson/pom.xml +++ b/jackson/pom.xml @@ -114,12 +114,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 2.4.2 @@ -141,9 +141,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/mockito/pom.xml b/mockito/pom.xml index 0cd4b62612..78f767517a 100644 --- a/mockito/pom.xml +++ b/mockito/pom.xml @@ -89,12 +89,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -113,9 +113,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/rest-testing/pom.xml b/rest-testing/pom.xml index 61addd1a08..cb2ee5616f 100644 --- a/rest-testing/pom.xml +++ b/rest-testing/pom.xml @@ -138,7 +138,7 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 2.4.2 @@ -160,9 +160,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/sandbox/pom.xml b/sandbox/pom.xml index 4ff908e7d3..670cced9c3 100644 --- a/sandbox/pom.xml +++ b/sandbox/pom.xml @@ -160,9 +160,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-all/pom.xml b/spring-all/pom.xml index 5d351a5693..8c4f48f8b8 100644 --- a/spring-all/pom.xml +++ b/spring-all/pom.xml @@ -191,14 +191,14 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 3.18.1-GA 1.2 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -217,9 +217,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-exceptions/pom.xml b/spring-exceptions/pom.xml index 5332b885ae..df765c37f2 100644 --- a/spring-exceptions/pom.xml +++ b/spring-exceptions/pom.xml @@ -204,14 +204,14 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 3.18.1-GA 1.2 4.3.7.Final - 5.1.32 + 5.1.34 7.0.42 @@ -231,9 +231,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 1.8.9 diff --git a/spring-hibernate3/pom.xml b/spring-hibernate3/pom.xml index bb2c9c7cc3..671861bc83 100644 --- a/spring-hibernate3/pom.xml +++ b/spring-hibernate3/pom.xml @@ -163,13 +163,13 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 3.18.1-GA 3.6.10.Final - 5.1.32 + 5.1.34 7.0.47 @@ -189,9 +189,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-hibernate4/pom.xml b/spring-hibernate4/pom.xml index b2b303f325..00d223dc16 100644 --- a/spring-hibernate4/pom.xml +++ b/spring-hibernate4/pom.xml @@ -170,13 +170,13 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 3.18.1-GA 4.3.7.Final - 5.1.32 + 5.1.34 7.0.42 @@ -196,9 +196,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-jpa/pom.xml b/spring-jpa/pom.xml index f601b58cb2..319e2374dd 100644 --- a/spring-jpa/pom.xml +++ b/spring-jpa/pom.xml @@ -170,12 +170,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -194,9 +194,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-mvc-java/pom.xml b/spring-mvc-java/pom.xml index adc2b3e841..8d2e9de33e 100644 --- a/spring-mvc-java/pom.xml +++ b/spring-mvc-java/pom.xml @@ -141,12 +141,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -165,9 +165,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-mvc-no-xml/pom.xml b/spring-mvc-no-xml/pom.xml index 492b59e7dd..e4fb0db77e 100644 --- a/spring-mvc-no-xml/pom.xml +++ b/spring-mvc-no-xml/pom.xml @@ -145,7 +145,7 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 1.7.7 @@ -157,9 +157,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-mvc-xml/pom.xml b/spring-mvc-xml/pom.xml index 23589c0f68..5863164c99 100644 --- a/spring-mvc-xml/pom.xml +++ b/spring-mvc-xml/pom.xml @@ -147,7 +147,7 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 1.7.7 @@ -159,9 +159,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-rest/pom.xml b/spring-rest/pom.xml index e2f2c58bbd..27f5477e73 100644 --- a/spring-rest/pom.xml +++ b/spring-rest/pom.xml @@ -202,12 +202,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 @@ -226,9 +226,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 1.7.7 diff --git a/spring-security-basic-auth/pom.xml b/spring-security-basic-auth/pom.xml index 5a5eca266c..31e5707abe 100644 --- a/spring-security-basic-auth/pom.xml +++ b/spring-security-basic-auth/pom.xml @@ -226,12 +226,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -250,9 +250,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-mvc-custom/pom.xml b/spring-security-mvc-custom/pom.xml index 5e0d003548..322f9f7366 100644 --- a/spring-security-mvc-custom/pom.xml +++ b/spring-security-mvc-custom/pom.xml @@ -231,12 +231,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -254,10 +254,10 @@ 4.11 1.10.8 - 4.3.5 + 4.3.6 4.3.3 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-mvc-digest-auth/pom.xml b/spring-security-mvc-digest-auth/pom.xml index 4ccee1b3e0..a4b49574c8 100644 --- a/spring-security-mvc-digest-auth/pom.xml +++ b/spring-security-mvc-digest-auth/pom.xml @@ -226,12 +226,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -250,9 +250,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-mvc-login/pom.xml b/spring-security-mvc-login/pom.xml index 8d0e019196..d1e4c9e475 100644 --- a/spring-security-mvc-login/pom.xml +++ b/spring-security-mvc-login/pom.xml @@ -223,12 +223,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -247,9 +247,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-mvc-persisted-remember-me/pom.xml b/spring-security-mvc-persisted-remember-me/pom.xml index cde52b0022..9183b113dc 100644 --- a/spring-security-mvc-persisted-remember-me/pom.xml +++ b/spring-security-mvc-persisted-remember-me/pom.xml @@ -260,12 +260,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -283,10 +283,10 @@ 4.11 1.10.8 - 4.3.5 + 4.3.6 4.3.3 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-mvc-session/pom.xml b/spring-security-mvc-session/pom.xml index 6961ba208f..4c95020b43 100644 --- a/spring-security-mvc-session/pom.xml +++ b/spring-security-mvc-session/pom.xml @@ -231,12 +231,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -254,10 +254,10 @@ 4.11 1.10.8 - 4.3.5 + 4.3.6 4.3.3 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-rest-basic-auth/pom.xml b/spring-security-rest-basic-auth/pom.xml index f7d85c06d0..4309c0cf18 100644 --- a/spring-security-rest-basic-auth/pom.xml +++ b/spring-security-rest-basic-auth/pom.xml @@ -287,16 +287,16 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 4.3.3 - 4.3.5 + 4.3.6 1.7.7 @@ -314,7 +314,7 @@ 4.11 1.10.8 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-rest-custom/pom.xml b/spring-security-rest-custom/pom.xml index 72ea90f66e..d12e743f41 100644 --- a/spring-security-rest-custom/pom.xml +++ b/spring-security-rest-custom/pom.xml @@ -251,12 +251,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -275,9 +275,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-rest-digest-auth/pom.xml b/spring-security-rest-digest-auth/pom.xml index 12041ff45f..4b9de6c144 100644 --- a/spring-security-rest-digest-auth/pom.xml +++ b/spring-security-rest-digest-auth/pom.xml @@ -275,16 +275,16 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 4.3.3 - 4.3.5 + 4.3.6 1.7.7 @@ -305,7 +305,7 @@ 4.11 1.10.8 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-rest-full/pom.xml b/spring-security-rest-full/pom.xml index 2fa16e66dc..472ebd3401 100644 --- a/spring-security-rest-full/pom.xml +++ b/spring-security-rest-full/pom.xml @@ -375,12 +375,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.6.2.RELEASE @@ -404,9 +404,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2 diff --git a/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java b/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java index e2191a929d..fdf0157230 100644 --- a/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java +++ b/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java @@ -43,6 +43,13 @@ public class FooController { // API + @RequestMapping(method = RequestMethod.GET, value = "/count") + @ResponseBody + @ResponseStatus(value = HttpStatus.OK) + public long count() { + return 2l; + } + // read - one @RequestMapping(value = "/{id}", method = RequestMethod.GET) diff --git a/spring-security-rest/pom.xml b/spring-security-rest/pom.xml index 628fd29729..fe38619b00 100644 --- a/spring-security-rest/pom.xml +++ b/spring-security-rest/pom.xml @@ -238,12 +238,12 @@ - 4.1.1.RELEASE + 4.1.2.RELEASE 3.2.5.RELEASE 4.3.7.Final - 5.1.32 + 5.1.34 1.7.7 @@ -262,9 +262,9 @@ 1.10.8 4.3.3 - 4.3.5 + 4.3.6 - 2.3.4 + 2.4.0 3.2