rename resource services

This commit is contained in:
DOHA 2017-01-29 17:19:25 +02:00
parent 19afd94177
commit 49b973566c
20 changed files with 15 additions and 15 deletions

View File

@ -9,8 +9,8 @@
<modules> <modules>
<module>spring-cloud-rest-config</module> <module>spring-cloud-rest-config</module>
<module>spring-cloud-rest-server</module> <module>spring-cloud-rest-server</module>
<module>spring-cloud-rest-client-1</module> <module>spring-cloud-rest-books-api</module>
<module>spring-cloud-rest-client-2</module> <module>spring-cloud-rest-reviews-api</module>
</modules> </modules>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId> <groupId>org.baeldung</groupId>
<artifactId>spring-cloud-rest-client-1</artifactId> <artifactId>spring-cloud-rest-books-api</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>spring-cloud-rest-client-1</name> <name>spring-cloud-rest-books-api</name>
<description>Client Service for books</description> <description>Simple books API</description>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -6,9 +6,9 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient @EnableEurekaClient
public class SpringCloudRestClientApplication { public class BooksApiApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(SpringCloudRestClientApplication.class, args); SpringApplication.run(BooksApiApplication.class, args);
} }
} }

View File

@ -19,7 +19,7 @@ import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SpringCloudRestClientApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT) @SpringBootTest(classes = { BooksApiApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
public class RestApiLiveTest { public class RestApiLiveTest {
private static final String API_URI = "http://localhost:8084/books"; private static final String API_URI = "http://localhost:8084/books";

View File

@ -18,7 +18,7 @@ import org.springframework.test.context.junit4.SpringRunner;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SpringCloudRestClientApplication.class, SessionConfig.class }, webEnvironment = WebEnvironment.DEFINED_PORT) @SpringBootTest(classes = { BooksApiApplication.class, SessionConfig.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
public class SessionLiveTest { public class SessionLiveTest {
private Jedis jedis; private Jedis jedis;

View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId> <groupId>org.baeldung</groupId>
<artifactId>spring-cloud-rest-client-2</artifactId> <artifactId>spring-cloud-rest-reviews-api</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>spring-cloud-rest-client-2</name> <name>spring-cloud-rest-reviews-api</name>
<description>Client Service for book reviews</description> <description>Simple reviews API</description>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>

View File

@ -6,9 +6,9 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication @SpringBootApplication
@EnableEurekaClient @EnableEurekaClient
public class SpringCloudRestClientApplication { public class BookReviewsApiApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(SpringCloudRestClientApplication.class, args); SpringApplication.run(BookReviewsApiApplication.class, args);
} }
} }

View File

@ -19,7 +19,7 @@ import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SpringCloudRestClientApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT) @SpringBootTest(classes = { BookReviewsApiApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
public class RestApiLiveTest { public class RestApiLiveTest {
private static final String API_URI = "http://localhost:8085/reviews"; private static final String API_URI = "http://localhost:8085/reviews";