diff --git a/spring-data-rest-1/README.md b/spring-data-rest-2/README.md similarity index 96% rename from spring-data-rest-1/README.md rename to spring-data-rest-2/README.md index 07d0c4e363..04a54291b0 100644 --- a/spring-data-rest-1/README.md +++ b/spring-data-rest-2/README.md @@ -14,7 +14,7 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring The application uses [Spring Boot](http://projects.spring.io/spring-boot/), so it is easy to run. You can start it any of a few ways: * Run the `main` method from `SpringDataRestApplication` * Use the Maven Spring Boot plugin: `mvn spring-boot:run` -* Package the application as a JAR and run it using `java -jar intro-spring-data-rest-1.jar` +* Package the application as a JAR and run it using `java -jar intro-spring-data-rest-2.jar` # Viewing the running application To view the running application, visit [http://localhost:8080](http://localhost:8080) in your browser diff --git a/spring-data-rest-1/pom.xml b/spring-data-rest-2/pom.xml similarity index 97% rename from spring-data-rest-1/pom.xml rename to spring-data-rest-2/pom.xml index 51aa85eacc..cf3265c46d 100644 --- a/spring-data-rest-1/pom.xml +++ b/spring-data-rest-2/pom.xml @@ -3,9 +3,9 @@ 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-data-rest-1 + spring-data-rest-2 1.0 - spring-data-rest-1 + spring-data-rest-2 jar Intro to Spring Data REST diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/SpringDataRestApplication.java b/spring-data-rest-2/src/main/java/com/baeldung/books/SpringDataRestApplication.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/SpringDataRestApplication.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/SpringDataRestApplication.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/config/DbConfig.java b/spring-data-rest-2/src/main/java/com/baeldung/books/config/DbConfig.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/config/DbConfig.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/config/DbConfig.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/config/RestConfig.java b/spring-data-rest-2/src/main/java/com/baeldung/books/config/RestConfig.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/config/RestConfig.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/config/RestConfig.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/config/ValidatorEventRegister.java b/spring-data-rest-2/src/main/java/com/baeldung/books/config/ValidatorEventRegister.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/config/ValidatorEventRegister.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/config/ValidatorEventRegister.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/exception/handlers/RestResponseEntityExceptionHandler.java b/spring-data-rest-2/src/main/java/com/baeldung/books/exception/handlers/RestResponseEntityExceptionHandler.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/exception/handlers/RestResponseEntityExceptionHandler.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/exception/handlers/RestResponseEntityExceptionHandler.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/models/WebsiteUser.java b/spring-data-rest-2/src/main/java/com/baeldung/books/models/WebsiteUser.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/models/WebsiteUser.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/models/WebsiteUser.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/repositories/UserRepository.java b/spring-data-rest-2/src/main/java/com/baeldung/books/repositories/UserRepository.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/repositories/UserRepository.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/repositories/UserRepository.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/books/validators/WebsiteUserValidator.java b/spring-data-rest-2/src/main/java/com/baeldung/books/validators/WebsiteUserValidator.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/books/validators/WebsiteUserValidator.java rename to spring-data-rest-2/src/main/java/com/baeldung/books/validators/WebsiteUserValidator.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/halbrowser/App.java b/spring-data-rest-2/src/main/java/com/baeldung/halbrowser/App.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/halbrowser/App.java rename to spring-data-rest-2/src/main/java/com/baeldung/halbrowser/App.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/halbrowser/config/DBLoader.java b/spring-data-rest-2/src/main/java/com/baeldung/halbrowser/config/DBLoader.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/halbrowser/config/DBLoader.java rename to spring-data-rest-2/src/main/java/com/baeldung/halbrowser/config/DBLoader.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/halbrowser/config/RestConfig.java b/spring-data-rest-2/src/main/java/com/baeldung/halbrowser/config/RestConfig.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/halbrowser/config/RestConfig.java rename to spring-data-rest-2/src/main/java/com/baeldung/halbrowser/config/RestConfig.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/halbrowser/data/BookRepository.java b/spring-data-rest-2/src/main/java/com/baeldung/halbrowser/data/BookRepository.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/halbrowser/data/BookRepository.java rename to spring-data-rest-2/src/main/java/com/baeldung/halbrowser/data/BookRepository.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/halbrowser/model/Book.java b/spring-data-rest-2/src/main/java/com/baeldung/halbrowser/model/Book.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/halbrowser/model/Book.java rename to spring-data-rest-2/src/main/java/com/baeldung/halbrowser/model/Book.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/Application.java b/spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/Application.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/Application.java rename to spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/Application.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/controllers/UserController.java b/spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/controllers/UserController.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/controllers/UserController.java rename to spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/controllers/UserController.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/entities/User.java b/spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/entities/User.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/entities/User.java rename to spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/entities/User.java diff --git a/spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/repositories/UserRepository.java b/spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/repositories/UserRepository.java similarity index 100% rename from spring-data-rest-1/src/main/java/com/baeldung/springdatawebsupport/application/repositories/UserRepository.java rename to spring-data-rest-2/src/main/java/com/baeldung/springdatawebsupport/application/repositories/UserRepository.java diff --git a/spring-data-rest-1/src/main/resources/application.properties b/spring-data-rest-2/src/main/resources/application.properties similarity index 100% rename from spring-data-rest-1/src/main/resources/application.properties rename to spring-data-rest-2/src/main/resources/application.properties diff --git a/spring-data-rest-1/src/main/resources/logback.xml b/spring-data-rest-2/src/main/resources/logback.xml similarity index 100% rename from spring-data-rest-1/src/main/resources/logback.xml rename to spring-data-rest-2/src/main/resources/logback.xml diff --git a/spring-data-rest-1/src/main/resources/persistence-h2.properties b/spring-data-rest-2/src/main/resources/persistence-h2.properties similarity index 100% rename from spring-data-rest-1/src/main/resources/persistence-h2.properties rename to spring-data-rest-2/src/main/resources/persistence-h2.properties diff --git a/spring-data-rest-1/src/test/java/com/baeldung/SpringContextTest.java b/spring-data-rest-2/src/test/java/com/baeldung/SpringContextTest.java similarity index 100% rename from spring-data-rest-1/src/test/java/com/baeldung/SpringContextTest.java rename to spring-data-rest-2/src/test/java/com/baeldung/SpringContextTest.java diff --git a/spring-data-rest-1/src/test/java/com/baeldung/books/validator/SpringDataRestValidatorIntegrationTest.java b/spring-data-rest-2/src/test/java/com/baeldung/books/validator/SpringDataRestValidatorIntegrationTest.java similarity index 100% rename from spring-data-rest-1/src/test/java/com/baeldung/books/validator/SpringDataRestValidatorIntegrationTest.java rename to spring-data-rest-2/src/test/java/com/baeldung/books/validator/SpringDataRestValidatorIntegrationTest.java diff --git a/spring-data-rest-1/src/test/java/com/baeldung/springdatawebsupport/application/test/UserControllerIntegrationTest.java b/spring-data-rest-2/src/test/java/com/baeldung/springdatawebsupport/application/test/UserControllerIntegrationTest.java similarity index 100% rename from spring-data-rest-1/src/test/java/com/baeldung/springdatawebsupport/application/test/UserControllerIntegrationTest.java rename to spring-data-rest-2/src/test/java/com/baeldung/springdatawebsupport/application/test/UserControllerIntegrationTest.java