Merge pull request #8254 from sjmillington/rest-move-3

Rest move 3
This commit is contained in:
Josh Cummings 2019-11-28 10:40:04 -07:00 committed by GitHub
commit 514d457ec6
46 changed files with 61 additions and 37 deletions

61
pom.xml
View File

@ -483,7 +483,7 @@
<module>guava-io</module>
<module>guava-collections</module>
<module>guava-collections-map</module>
<module>guava-collections-set</module>
<module>guava-collections-set</module>
<module>guava-modules</module>
<!-- <module>guest</module> --> <!-- not to be built as its for guest articles -->
<module>guice</module>
@ -513,7 +513,7 @@
<!-- <module>java-ee-8-security-api</module> --> <!-- long running -->
<module>java-lite</module>
<module>java-math</module>
<module>java-math-2</module> <!-- Added for BAEL-3506 -->
<module>java-math-2</module> <!-- Added for BAEL-3506 -->
<module>java-numbers</module>
<module>java-numbers-2</module>
<module>java-rmi</module>
@ -555,8 +555,8 @@
<module>libraries-data</module>
<module>libraries-data-2</module>
<module>libraries-data-db</module>
<module>libraries-data-io</module>
<module>libraries-apache-commons</module>
<module>libraries-data-io</module>
<module>libraries-apache-commons</module>
<module>libraries-apache-commons-collections</module>
<module>libraries-apache-commons-io</module>
<module>libraries-primitive</module>
@ -621,7 +621,7 @@
<module>tensorflow-java</module>
<module>spf4j</module>
<module>spring-boot-config-jpa-error</module>
<module>spring-boot-flowable</module>
<module>spring-boot-flowable</module>
<module>spring-boot-mvc-2</module>
<module>spring-boot-performance</module>
<module>spring-boot-properties</module>
@ -709,7 +709,7 @@
<module>spring-boot-camel</module>
<!-- <module>spring-boot-cli</module> --> <!-- Not a maven project -->
<module>spring-boot-config-jpa-error</module>
<module>spring-boot-client</module>
<module>spring-boot-client</module>
<module>spring-boot-crud</module>
<module>spring-boot-ctx-fluent</module>
@ -722,10 +722,10 @@
<module>spring-boot-mvc</module>
<module>spring-boot-mvc-birt</module>
<module>spring-boot-environment</module>
<module>spring-boot-deployment</module>
<module>spring-boot-runtime</module>
<module>spring-boot-runtime/disabling-console-jul</module>
<module>spring-boot-runtime/disabling-console-log4j2</module>
<module>spring-boot-deployment</module>
<module>spring-boot-runtime</module>
<module>spring-boot-runtime/disabling-console-jul</module>
<module>spring-boot-runtime/disabling-console-log4j2</module>
<module>spring-boot-runtime/disabling-console-logback</module>
<module>spring-boot-artifacts</module>
<module>spring-boot-rest</module>
@ -748,7 +748,7 @@
<module>spring-core</module>
<module>spring-core-2</module>
<module>spring-core-3</module>
<module>spring-cucumber</module>
<module>spring-cucumber</module>
<module>spring-data-rest</module>
<module>spring-data-rest-querydsl</module>
@ -780,7 +780,7 @@
<module>spring-mobile</module>
<module>spring-mockito</module>
<module>spring-mvc-basics-2</module>
<module>spring-mvc-forms-jsp</module>
<module>spring-mvc-forms-jsp</module>
<module>spring-mvc-forms-thymeleaf</module>
<module>spring-mvc-java</module>
<module>spring-mvc-kotlin</module>
@ -801,7 +801,7 @@
<module>spring-rest</module>
<module>spring-rest-angular</module>
<module>spring-rest-compress</module>
<module>spring-rest-full</module>
<module>spring-rest-testing</module>
<module>spring-rest-hal-browser</module>
<module>spring-rest-query-language</module>
<module>spring-rest-shell</module>
@ -833,7 +833,7 @@
<module>spring-security-x509</module>
<module>spring-session</module>
<module>spring-shell</module>
<module>spring-sleuth</module>
<module>spring-sleuth</module>
<module>spring-soap</module>
<module>spring-social-login</module>
<module>spring-spel</module>
@ -922,7 +922,7 @@
<module>core-java-modules/core-java-concurrency-advanced</module> <!-- very long running? -->
<module>core-java-modules/core-java-concurrency-advanced-2</module>
<module>core-java-modules/core-java-concurrency-advanced-3</module>
<module>core-kotlin</module> <!-- long running? -->
<module>core-kotlin</module> <!-- long running? -->
<module>core-kotlin-2</module>
<module>core-kotlin-io</module>
@ -1064,7 +1064,7 @@
<module>core-java-modules/core-java-nio</module>
<module>core-java-modules/core-java-nio-2</module>
<module>core-java-modules/core-java-security</module>
<module>core-java-modules/core-java-exceptions</module>
<module>core-java-modules/core-java-exceptions</module>
<module>core-java-modules/core-java-lang-syntax</module>
<module>core-java-modules/core-java-lang-syntax-2</module>
<module>core-java-modules/core-java-lang</module>
@ -1115,7 +1115,7 @@
<module>guava-io</module>
<module>guava-collections</module>
<module>guava-collections-map</module>
<module>guava-collections-set</module>
<module>guava-collections-set</module>
<module>guava-modules</module>
<!-- <module>guest</module> --> <!-- not to be built as its for guest articles -->
<module>guice</module>
@ -1145,7 +1145,7 @@
<module>java-ee-8-security-api</module>
<module>java-lite</module>
<module>java-math</module>
<module>java-math-2</module> <!-- Added for BAEL-3506 -->
<module>java-math-2</module> <!-- Added for BAEL-3506 -->
<module>java-numbers</module>
<module>java-numbers-2</module>
<module>java-rmi</module>
@ -1185,8 +1185,8 @@
<module>libraries-data</module>
<module>libraries-data-2</module>
<module>libraries-data-db</module>
<module>libraries-data-io</module>
<module>libraries-apache-commons</module>
<module>libraries-data-io</module>
<module>libraries-apache-commons</module>
<module>libraries-apache-commons-collections</module>
<module>libraries-apache-commons-io</module>
<module>libraries-testing</module>
@ -1327,10 +1327,10 @@
<module>spring-boot-mvc</module>
<module>spring-boot-mvc-birt</module>
<module>spring-boot-environment</module>
<module>spring-boot-deployment</module>
<module>spring-boot-runtime</module>
<module>spring-boot-runtime/disabling-console-jul</module>
<module>spring-boot-runtime/disabling-console-log4j2</module>
<module>spring-boot-deployment</module>
<module>spring-boot-runtime</module>
<module>spring-boot-runtime/disabling-console-jul</module>
<module>spring-boot-runtime/disabling-console-log4j2</module>
<module>spring-boot-runtime/disabling-console-logback</module>
<module>spring-boot-artifacts</module>
<module>spring-boot-rest</module>
@ -1349,7 +1349,7 @@
<module>spring-core</module>
<module>spring-core-2</module>
<module>spring-core-3</module>
<module>spring-cucumber</module>
<module>spring-cucumber</module>
<module>spring-data-rest</module>
<module>spring-data-rest-querydsl</module>
@ -1381,7 +1381,7 @@
<module>spring-mobile</module>
<module>spring-mockito</module>
<module>spring-mvc-basics-2</module>
<module>spring-mvc-forms-jsp</module>
<module>spring-mvc-forms-jsp</module>
<module>spring-mvc-forms-thymeleaf</module>
<module>spring-mvc-java</module>
<module>spring-mvc-kotlin</module>
@ -1402,7 +1402,7 @@
<module>spring-rest</module>
<module>spring-rest-angular</module>
<module>spring-rest-compress</module>
<module>spring-rest-full</module>
<module>spring-rest-testing</module>
<module>spring-rest-hal-browser</module>
<module>spring-rest-query-language</module>
<module>spring-rest-shell</module>
@ -1411,7 +1411,7 @@
<module>spring-roo</module>
<module>spring-scheduling</module>
<module>spring-security-acl</module>
<module>spring-security-acl</module>
<module>spring-security-angular/server</module>
<module>spring-security-cache-control</module>
<module>spring-security-core</module>
@ -1433,7 +1433,7 @@
<module>spring-security-thymeleaf</module>
<module>spring-security-x509</module>
<module>spring-session</module>
<module>spring-shell</module>
<module>spring-shell</module>
<module>spring-sleuth</module>
<module>spring-soap</module>
<module>spring-social-login</module>
@ -1519,7 +1519,7 @@
<module>libraries</module> <!-- very long running -->
<module>persistence-modules/hibernate5</module>
<module>persistence-modules/hibernate-mapping</module>
<module>persistence-modules/hibernate-mapping</module>
<module>persistence-modules/java-jpa</module>
<module>persistence-modules/java-jpa-2</module>
<module>persistence-modules/java-mongodb</module>
@ -1602,4 +1602,3 @@
</properties>
</project>

View File

@ -9,4 +9,9 @@ This module contains articles about REST APIs in Spring
- [Spring RequestMapping](https://www.baeldung.com/spring-requestmapping)
- [Spring and Apache FileUpload](https://www.baeldung.com/spring-apache-file-upload)
- [Test a REST API with curl](https://www.baeldung.com/curl-rest)
- [Best Practices for REST API Error Handling](https://www.baeldung.com/rest-api-error-handling-best-practices)
- [Best Practices for REST API Error Handling](https://www.baeldung.com/rest-api-error-handling-best-practices)
### NOTE:
This module is closed and should **not** be used to store the code
for any further articles.

View File

@ -1,6 +1,6 @@
## Spring REST Full
## Spring REST Testing
This module contains articles about REST APIs with Spring
This module contains articles about testing REST APIs with Spring
### Courses
@ -17,7 +17,6 @@ The "Learn Spring Security" Classes: http://github.learnspringsecurity.com
mvn clean install
```
### Set up MySQL
```
mysql -u root -p

View File

@ -2,9 +2,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>spring-rest-full</artifactId>
<artifactId>spring-rest-testing</artifactId>
<version>0.1-SNAPSHOT</version>
<name>spring-rest-full</name>
<name>spring-rest-testing</name>
<packaging>war</packaging>
<parent>

View File

@ -0,0 +1,16 @@
package org.baeldung;
import org.baeldung.spring.Application;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class SpringContextIntegrationTest {
@Test
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
}
}

View File

@ -17,3 +17,8 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
- [Uploading MultipartFile with Spring RestTemplate](https://www.baeldung.com/spring-rest-template-multipart-upload)
- [Get and Post Lists of Objects with RestTemplate](https://www.baeldung.com/spring-rest-template-list)
- [Copy of RestTemplate Post Request with JSON](https://www.baeldung.com/spring-resttemplate-post-json-test)
### NOTE:
This module is closed and should **not** be used to store the code
for any further articles.