rename resource services
This commit is contained in:
parent
19afd94177
commit
49b973566c
|
@ -9,8 +9,8 @@
|
|||
<modules>
|
||||
<module>spring-cloud-rest-config</module>
|
||||
<module>spring-cloud-rest-server</module>
|
||||
<module>spring-cloud-rest-client-1</module>
|
||||
<module>spring-cloud-rest-client-2</module>
|
||||
<module>spring-cloud-rest-books-api</module>
|
||||
<module>spring-cloud-rest-reviews-api</module>
|
||||
</modules>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.baeldung</groupId>
|
||||
<artifactId>spring-cloud-rest-client-1</artifactId>
|
||||
<artifactId>spring-cloud-rest-books-api</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>spring-cloud-rest-client-1</name>
|
||||
<description>Client Service for books</description>
|
||||
<name>spring-cloud-rest-books-api</name>
|
||||
<description>Simple books API</description>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
|
@ -6,9 +6,9 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|||
|
||||
@SpringBootApplication
|
||||
@EnableEurekaClient
|
||||
public class SpringCloudRestClientApplication {
|
||||
public class BooksApiApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringCloudRestClientApplication.class, args);
|
||||
SpringApplication.run(BooksApiApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ import org.springframework.http.MediaType;
|
|||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = { SpringCloudRestClientApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
|
||||
@SpringBootTest(classes = { BooksApiApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
|
||||
public class RestApiLiveTest {
|
||||
|
||||
private static final String API_URI = "http://localhost:8084/books";
|
|
@ -18,7 +18,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||
import redis.clients.jedis.Jedis;
|
||||
|
||||
@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 {
|
||||
|
||||
private Jedis jedis;
|
|
@ -4,12 +4,12 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.baeldung</groupId>
|
||||
<artifactId>spring-cloud-rest-client-2</artifactId>
|
||||
<artifactId>spring-cloud-rest-reviews-api</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>spring-cloud-rest-client-2</name>
|
||||
<description>Client Service for book reviews</description>
|
||||
<name>spring-cloud-rest-reviews-api</name>
|
||||
<description>Simple reviews API</description>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
|
@ -6,9 +6,9 @@ import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
|||
|
||||
@SpringBootApplication
|
||||
@EnableEurekaClient
|
||||
public class SpringCloudRestClientApplication {
|
||||
public class BookReviewsApiApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SpringCloudRestClientApplication.class, args);
|
||||
SpringApplication.run(BookReviewsApiApplication.class, args);
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ import org.springframework.http.MediaType;
|
|||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = { SpringCloudRestClientApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
|
||||
@SpringBootTest(classes = { BookReviewsApiApplication.class }, webEnvironment = WebEnvironment.DEFINED_PORT)
|
||||
public class RestApiLiveTest {
|
||||
|
||||
private static final String API_URI = "http://localhost:8085/reviews";
|
Loading…
Reference in New Issue