File tree 6 files changed +82
-0
lines changed
test/java/com/baeldung/web
6 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 644
644
<module >spring-boot-logging-log4j2</module >
645
645
<module >spring-boot-mvc</module >
646
646
<module >spring-boot-ops</module >
647
+ <module >spring-boot-rest</module >
647
648
<module >spring-boot-property-exp</module >
648
649
<module >spring-boot-security</module >
649
650
<module >spring-boot-testing</module >
1355
1356
<module >spring-boot-logging-log4j2</module >
1356
1357
<module >spring-boot-mvc</module >
1357
1358
<module >spring-boot-ops</module >
1359
+ <module >spring-boot-rest</module >
1358
1360
<module >spring-boot-property-exp</module >
1359
1361
<module >spring-boot-security</module >
1360
1362
<module >spring-boot-vue</module >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
+ <modelVersion >4.0.0</modelVersion >
5
+ <groupId >com.baeldung.web</groupId >
6
+ <artifactId >spring-boot-rest</artifactId >
7
+ <name >spring-boot-rest</name >
8
+ <description >Spring Boot Rest Module</description >
9
+ <packaging >war</packaging >
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
+ <dependency >
20
+ <groupId >org.springframework.boot</groupId >
21
+ <artifactId >spring-boot-starter-web</artifactId >
22
+ </dependency >
23
+
24
+ <dependency >
25
+ <groupId >org.springframework.boot</groupId >
26
+ <artifactId >spring-boot-starter-test</artifactId >
27
+ <scope >test</scope >
28
+ </dependency >
29
+ </dependencies >
30
+
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >org.springframework.boot</groupId >
35
+ <artifactId >spring-boot-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+
40
+ <properties >
41
+ <start-class >com.baeldung.SpringBootRestApplication</start-class >
42
+ </properties >
43
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .baeldung ;
2
+
3
+ import org .springframework .boot .SpringApplication ;
4
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
+
6
+ @ SpringBootApplication
7
+ public class SpringBootRestApplication {
8
+
9
+ public static void main (String [] args ) {
10
+ SpringApplication .run (SpringBootRestApplication .class , args );
11
+ }
12
+
13
+ }
Original file line number Diff line number Diff line change
1
+ package com .baeldung .web .config ;
2
+
3
+ import org .springframework .context .annotation .Configuration ;
4
+
5
+ @ Configuration
6
+ public class WebConfig {
7
+
8
+ }
Original file line number Diff line number Diff line change
1
+ package com .baeldung .spring .boot .rest ;
2
+
3
+ import org .junit .Test ;
4
+ import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .context .SpringBootTest ;
6
+ import org .springframework .test .context .junit4 .SpringRunner ;
7
+
8
+ @ RunWith (SpringRunner .class )
9
+ @ SpringBootTest
10
+ public class SpringBootRestApplicationUnitTest {
11
+
12
+ @ Test
13
+ public void contextLoads () {
14
+ }
15
+
16
+ }
You can’t perform that action at this time.
0 commit comments