BAEL-10925 New module spring-boot-rest

This commit is contained in:
Dhawal Kapil 2019-01-09 00:30:54 +05:30
parent 731a3cd229
commit c0e36d5b10
6 changed files with 85 additions and 1 deletions

View File

@ -645,6 +645,7 @@
<module>spring-boot-mvc</module> <module>spring-boot-mvc</module>
<module>spring-boot-ops</module> <module>spring-boot-ops</module>
<module>spring-boot-property-exp</module> <module>spring-boot-property-exp</module>
<module>spring-boot-rest</module>
<module>spring-boot-security</module> <module>spring-boot-security</module>
<module>spring-boot-testing</module> <module>spring-boot-testing</module>
<module>spring-boot-vue</module> <module>spring-boot-vue</module>
@ -1356,8 +1357,11 @@
<module>spring-boot-mvc</module> <module>spring-boot-mvc</module>
<module>spring-boot-ops</module> <module>spring-boot-ops</module>
<module>spring-boot-property-exp</module> <module>spring-boot-property-exp</module>
<module>spring-boot-rest</module>
<module>spring-boot-security</module> <module>spring-boot-security</module>
<module>spring-boot-testing</module>
<module>spring-boot-vue</module> <module>spring-boot-vue</module>
<module>spring-boot-libraries</module>
<module>spring-cloud</module> <module>spring-cloud</module>
<module>spring-cloud-bus</module> <module>spring-cloud-bus</module>
@ -1372,7 +1376,7 @@
<module>spring-dispatcher-servlet</module> <module>spring-dispatcher-servlet</module>
<module>spring-drools</module> <module>spring-drools</module>
<module>spring-ehcache</module> <module>spring-ehcache</module>
<module>spring-ejb</module> <module>spring-ejb</module>
<module>spring-exceptions</module> <module>spring-exceptions</module>

43
spring-boot-rest/pom.xml Normal file
View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung.web</groupId>
<artifactId>spring-boot-rest</artifactId>
<name>spring-boot-rest</name>
<description>Spring Boot Rest Module</description>
<packaging>war</packaging>
<parent>
<artifactId>parent-boot-2</artifactId>
<groupId>com.baeldung</groupId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../parent-boot-2</relativePath>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<properties>
<start-class>com.baeldung.SpringBootRestApplication</start-class>
</properties>
</project>

View File

@ -0,0 +1,13 @@
package com.baeldung;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootRestApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootRestApplication.class, args);
}
}

View File

@ -0,0 +1,8 @@
package com.baeldung.web.config;
import org.springframework.context.annotation.Configuration;
@Configuration
public class WebConfig {
}

View File

@ -0,0 +1,16 @@
package com.baeldung.spring.boot.rest;
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
public class SpringBootRestApplicationUnitTest {
@Test
public void contextLoads() {
}
}