Skip to content

Commit c7f95c2

Browse files
committed
[BAEL-8473] - Moved articles from spring-boot module to new spring-boot-client module
1 parent 24b6f66 commit c7f95c2

15 files changed

Lines changed: 196 additions & 19 deletions

File tree

‎pom.xml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@
458458
<module>spring-batch</module>
459459
<module>spring-bom</module>
460460
<module>spring-boot</module>
461+
<module>spring-boot-client</module>
461462
<module>spring-boot-keycloak</module>
462463
<module>spring-boot-bootstrap</module>
463464
<module>spring-boot-admin</module>
@@ -723,6 +724,7 @@
723724

724725
<module>spring-bom</module>
725726
<module>spring-boot</module>
727+
<module>spring-boot-client</module>
726728
<module>spring-boot-keycloak</module>
727729
<module>spring-boot-bootstrap</module>
728730
<module>spring-boot-admin</module>

‎spring-boot-client/.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/target/
2+
.settings/
3+
.classpath
4+
.project
5+

‎spring-boot-client/README.MD‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### The Course
2+
The "REST With Spring" Classes: http://bit.ly/restwithspring
3+
4+
### Relevant Articles:
5+
6+
- [Quick Guide to @RestClientTest in Spring Boot](http://www.baeldung.com/restclienttest-in-spring-boot)
7+
- [A Java Client for a WebSockets API](http://www.baeldung.com/websockets-api-java-spring-client)

‎spring-boot-client/pom.xml‎

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>spring-boot-client</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
<packaging>war</packaging>
8+
<name>spring-boot-client</name>
9+
<description>This is simple boot client application for Spring boot actuator test</description>
10+
11+
<parent>
12+
<artifactId>parent-boot-2</artifactId>
13+
<groupId>com.baeldung</groupId>
14+
<version>0.0.1-SNAPSHOT</version>
15+
<relativePath>../parent-boot-2</relativePath>
16+
</parent>
17+
18+
<dependencies>
19+
20+
<!-- JUnit Jupiter dependencies -->
21+
<dependency>
22+
<groupId>org.junit.jupiter</groupId>
23+
<artifactId>junit-jupiter-api</artifactId>
24+
<scope>test</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.junit.jupiter</groupId>
28+
<artifactId>junit-jupiter-engine</artifactId>
29+
<scope>test</scope>
30+
</dependency>
31+
<!-- JUnit platform launcher -->
32+
<!-- To be able to run tests from IDE directly -->
33+
<dependency>
34+
<groupId>org.junit.platform</groupId>
35+
<artifactId>junit-platform-launcher</artifactId>
36+
<version>${junit-platform.version}</version>
37+
<scope>test</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-web</artifactId>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-test</artifactId>
46+
<scope>test</scope>
47+
</dependency>
48+
<dependency>
49+
<groupId>com.h2database</groupId>
50+
<artifactId>h2</artifactId>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.springframework.boot</groupId>
54+
<artifactId>spring-boot-starter</artifactId>
55+
</dependency>
56+
<dependency>
57+
<groupId>com.google.guava</groupId>
58+
<artifactId>guava</artifactId>
59+
<version>${guava.version}</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>org.springframework</groupId>
63+
<artifactId>spring-websocket</artifactId>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.springframework</groupId>
67+
<artifactId>spring-messaging</artifactId>
68+
</dependency>
69+
70+
</dependencies>
71+
72+
<build>
73+
<finalName>spring-boot-client</finalName>
74+
<resources>
75+
<resource>
76+
<directory>src/main/resources</directory>
77+
<filtering>true</filtering>
78+
</resource>
79+
</resources>
80+
81+
<plugins>
82+
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-war-plugin</artifactId>
86+
</plugin>
87+
88+
<plugin>
89+
<groupId>pl.project13.maven</groupId>
90+
<artifactId>git-commit-id-plugin</artifactId>
91+
<version>${git-commit-id-plugin.version}</version>
92+
</plugin>
93+
94+
</plugins>
95+
96+
</build>
97+
98+
<profiles>
99+
<profile>
100+
<id>autoconfiguration</id>
101+
<build>
102+
<plugins>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-surefire-plugin</artifactId>
106+
<executions>
107+
<execution>
108+
<phase>integration-test</phase>
109+
<goals>
110+
<goal>test</goal>
111+
</goals>
112+
<configuration>
113+
<excludes>
114+
<exclude>**/*LiveTest.java</exclude>
115+
<exclude>**/*IntegrationTest.java</exclude>
116+
<exclude>**/*IntTest.java</exclude>
117+
</excludes>
118+
<includes>
119+
<include>**/AutoconfigurationTest.java</include>
120+
</includes>
121+
</configuration>
122+
</execution>
123+
</executions>
124+
<configuration>
125+
<systemPropertyVariables>
126+
<test.mime>json</test.mime>
127+
</systemPropertyVariables>
128+
</configuration>
129+
</plugin>
130+
</plugins>
131+
</build>
132+
</profile>
133+
</profiles>
134+
135+
<properties>
136+
<guava.version>18.0</guava.version>
137+
<junit-platform.version>1.2.0</junit-platform.version>
138+
<git-commit-id-plugin.version>2.2.4</git-commit-id-plugin.version>
139+
</properties>
140+
141+
</project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.baeldung.boot;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.context.ApplicationContext;
6+
7+
@SpringBootApplication
8+
public class Application {
9+
private static ApplicationContext applicationContext;
10+
11+
public static void main(String[] args) {
12+
applicationContext = SpringApplication.run(Application.class, args);
13+
}
14+
}

spring-boot/src/main/java/org/baeldung/boot/client/Details.java renamed to spring-boot-client/src/main/java/org/baeldung/boot/client/Details.java

File renamed without changes.

spring-boot/src/main/java/org/baeldung/boot/client/DetailsServiceClient.java renamed to spring-boot-client/src/main/java/org/baeldung/boot/client/DetailsServiceClient.java

File renamed without changes.

spring-boot/src/main/java/org/baeldung/websocket/client/Message.java renamed to spring-boot-client/src/main/java/org/baeldung/websocket/client/Message.java

File renamed without changes.

spring-boot/src/main/java/org/baeldung/websocket/client/MyStompSessionHandler.java renamed to spring-boot-client/src/main/java/org/baeldung/websocket/client/MyStompSessionHandler.java

File renamed without changes.

spring-boot/src/main/java/org/baeldung/websocket/client/StompClient.java renamed to spring-boot-client/src/main/java/org/baeldung/websocket/client/StompClient.java

File renamed without changes.

0 commit comments

Comments
 (0)