├── Hardware and Software requirements.pdf ├── LICENSE ├── README.md ├── chapter2 ├── chapter2.bootactuator │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── actuator │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── actuator │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab │ │ │ └── actuator │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── chapter2.bootcustomer │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── customer │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── customer │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab │ │ │ └── customer │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── chapter2.bootcustomernotifcation │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── customernotification │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── customernotification │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab │ │ │ └── customernotification │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── chapter2.boothateoas │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── chapter1 │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── chapter1 │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab.chapter1 │ │ │ └── boothateoas │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── chapter2.bootmessaging │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── chapter1 │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── chapter1 │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab.chapter1 │ │ │ └── bootmessaging │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── chapter2.bootrest │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── chapter2 │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── templates │ │ │ │ └── application.yaml │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── rvslab │ │ │ └── chapter2 │ │ │ └── ApplicationTests.java │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── org.rvslab.chapter1 │ │ │ └── bootrest │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── application.properties │ │ └── templates │ │ └── application.yaml ├── chapter2.swagger │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── pom.xml │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── Swagger2SpringBoot.java │ │ │ └── resources │ │ │ └── application.properties │ └── target │ │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.example │ │ │ └── swagger │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── application.properties ├── legacyrest │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.validation.prefs │ │ ├── org.eclipse.wst.ws.service.policy.prefs │ │ ├── org.springframework.ide.eclipse.beans.core.prefs │ │ └── org.springframework.ide.eclipse.core.prefs │ ├── .springBeans │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── rvslab │ │ │ │ │ └── chapter2 │ │ │ │ │ └── HomeController.java │ │ │ ├── resources │ │ │ │ └── log4j.xml │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ ├── spring │ │ │ │ ├── appServlet │ │ │ │ │ └── servlet-context.xml │ │ │ │ └── root-context.xml │ │ │ │ ├── views │ │ │ │ └── home.jsp │ │ │ │ └── web.xml │ │ └── test │ │ │ └── resources │ │ │ └── log4j.xml │ └── target │ │ ├── classes │ │ ├── log4j.xml │ │ └── org │ │ │ └── rvslab │ │ │ └── chapter2 │ │ │ ├── Greet.class │ │ │ └── HomeController.class │ │ ├── m2e-wtp │ │ └── web-resources │ │ │ └── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ └── org.rvslab │ │ │ ├── chapter2.legacyrest │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ │ └── legacyrest │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── test-classes │ │ └── log4j.xml └── pom.xml ├── chapter4 ├── chapter4.book │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── book │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── BookingComponent.java │ │ │ │ ├── BookingException.java │ │ │ │ ├── BookingStatus.java │ │ │ │ ├── Fare.java │ │ │ │ └── Sender.java │ │ │ │ ├── controller │ │ │ │ ├── BookingController.java │ │ │ │ └── Receiver.java │ │ │ │ ├── entity │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── Inventory.java │ │ │ │ └── Passenger.java │ │ │ │ └── repository │ │ │ │ ├── BookingRepository.java │ │ │ │ └── InventoryRepository.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter4.checkin │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── checkin │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── CheckinComponent.java │ │ │ │ └── Sender.java │ │ │ │ ├── controller │ │ │ │ └── CheckInController.java │ │ │ │ ├── entity │ │ │ │ └── CheckInRecord.java │ │ │ │ └── repository │ │ │ │ └── CheckinRepository.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter4.fares │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── fares │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ └── FaresComponent.java │ │ │ │ ├── controller │ │ │ │ └── FaresController.java │ │ │ │ ├── entity │ │ │ │ └── Fare.java │ │ │ │ └── repository │ │ │ │ └── FaresRepository.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter4.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter4.testclient │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter4.website │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ ├── Application.java │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── BrownFieldSiteController.java │ │ │ │ ├── CheckInRecord.java │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ ├── Passenger.java │ │ │ │ ├── SearchQuery.java │ │ │ │ └── UIData.java │ │ └── resources │ │ │ ├── application.properties │ │ │ ├── static │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── templates │ │ │ ├── book.html │ │ │ ├── bookingsearch.html │ │ │ ├── checkinconfirm.html │ │ │ ├── confirm.html │ │ │ ├── result.html │ │ │ └── search.html │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java └── pom.xml ├── chapter5 ├── chapter5.book-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── book │ │ │ │ └── apigateway │ │ │ │ └── BookingApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.book │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── book │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── BookingComponent.java │ │ │ │ ├── BookingException.java │ │ │ │ ├── BookingStatus.java │ │ │ │ ├── Fare.java │ │ │ │ ├── FareServiceProxy.java │ │ │ │ └── Sender.java │ │ │ │ ├── controller │ │ │ │ ├── BookingController.java │ │ │ │ └── Receiver.java │ │ │ │ ├── entity │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── Inventory.java │ │ │ │ └── Passenger.java │ │ │ │ └── repository │ │ │ │ ├── BookingRepository.java │ │ │ │ └── InventoryRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.checkin-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── checkin │ │ │ │ └── apigateway │ │ │ │ └── CheckinApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.checkin │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── checkin │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── CheckinComponent.java │ │ │ │ └── Sender.java │ │ │ │ ├── controller │ │ │ │ └── CheckInController.java │ │ │ │ ├── entity │ │ │ │ └── CheckInRecord.java │ │ │ │ └── repository │ │ │ │ └── CheckinRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.configserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── configserver │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.eurekaserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── eurekaserver │ │ │ │ └── EurekaserverApplication.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.fares-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── fares │ │ │ │ └── apigateway │ │ │ │ └── FaresApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.fares │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── fares │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ └── FaresComponent.java │ │ │ │ ├── controller │ │ │ │ └── FaresController.java │ │ │ │ ├── entity │ │ │ │ └── Fare.java │ │ │ │ └── repository │ │ │ │ └── FaresRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.search-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ └── apigateway │ │ │ │ ├── CustomZuulFilter.java │ │ │ │ └── SearchApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter5.website │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ ├── Application.java │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── BrownFieldSiteController.java │ │ │ │ ├── CheckInRecord.java │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ ├── Passenger.java │ │ │ │ ├── SearchQuery.java │ │ │ │ └── UIData.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ ├── static │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── templates │ │ │ ├── book.html │ │ │ ├── bookingsearch.html │ │ │ ├── checkinconfirm.html │ │ │ ├── confirm.html │ │ │ ├── result.html │ │ │ └── search.html │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java └── pom.xml ├── chapter6 ├── chapter6.configserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter6.eurekaserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter6.lifecyclemanager │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfied │ │ │ │ └── pss │ │ │ │ └── lcm │ │ │ │ ├── Application.java │ │ │ │ ├── decisionengine │ │ │ │ └── DecisionEngine.java │ │ │ │ ├── deploymentengine │ │ │ │ └── DeploymentEngine.java │ │ │ │ ├── deploymentrules │ │ │ │ ├── DeploymentRule.java │ │ │ │ ├── DeploymentRules.java │ │ │ │ └── DummyDeploymentRule.java │ │ │ │ ├── metricscollector │ │ │ │ └── MetricsCollector.java │ │ │ │ └── scalingpolicy │ │ │ │ ├── ScalingPolicies.java │ │ │ │ ├── ScalingPolicy.java │ │ │ │ └── TpmScalingPolicy.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter6.sampleservice │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── src │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── Application.java │ │ │ └── resources │ │ │ │ └── bootstrap.properties │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── ApplicationTests.java │ └── target │ │ ├── classes │ │ ├── META-INF │ │ │ ├── MANIFEST.MF │ │ │ └── maven │ │ │ │ └── com.example │ │ │ │ └── demo │ │ │ │ ├── pom.properties │ │ │ │ └── pom.xml │ │ ├── bootstrap.properties │ │ └── com │ │ │ └── example │ │ │ ├── Application.class │ │ │ └── GreetController.class │ │ ├── demo-0.0.1-SNAPSHOT.jar │ │ ├── demo-0.0.1-SNAPSHOT.jar.original │ │ ├── maven-archiver │ │ └── pom.properties │ │ ├── maven-status │ │ └── maven-compiler-plugin │ │ │ ├── compile │ │ │ └── default-compile │ │ │ │ ├── createdFiles.lst │ │ │ │ └── inputFiles.lst │ │ │ └── testCompile │ │ │ └── default-testCompile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ │ ├── surefire-reports │ │ ├── TEST-com.example.ApplicationTests.xml │ │ └── com.example.ApplicationTests.txt │ │ └── test-classes │ │ └── com │ │ └── example │ │ └── ApplicationTests.class ├── chapter6.search-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ └── apigateway │ │ │ │ ├── CustomZuulFilter.java │ │ │ │ └── SearchApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter6.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter6.website │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ ├── Application.java │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── BrownFieldSiteController.java │ │ │ │ ├── CheckInRecord.java │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ ├── Passenger.java │ │ │ │ ├── SearchQuery.java │ │ │ │ └── UIData.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ ├── static │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── templates │ │ │ ├── book.html │ │ │ ├── bookingsearch.html │ │ │ ├── checkinconfirm.html │ │ │ ├── confirm.html │ │ │ ├── result.html │ │ │ └── search.html │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java └── pom.xml ├── chapter7 ├── chapter7.configserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── configserver │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter7.eurekaserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── eurekaserver │ │ │ │ └── EurekaserverApplication.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter7.hystrixdashboard │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── HysterixdashboardApplication.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── HysterixdashboardApplicationTests.java ├── chapter7.search-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ └── apigateway │ │ │ │ ├── CustomZuulFilter.java │ │ │ │ └── SearchApiGateway.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ └── logback.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter7.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ └── logback.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter7.turbineServer │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── TurbineServerApplication.java │ │ └── resources │ │ │ └── bootstrap.yaml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── TurbineServerApplicationTests.java └── pom.xml ├── chapter8 ├── chapter8.configserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── configserver │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter8.eurekaserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── eurekaserver │ │ │ │ └── EurekaserverApplication.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter8.search-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ └── apigateway │ │ │ │ ├── CustomZuulFilter.java │ │ │ │ └── SearchApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter8.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter8.website │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ ├── Application.java │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── BrownFieldSiteController.java │ │ │ │ ├── CheckInRecord.java │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ ├── Passenger.java │ │ │ │ ├── SearchQuery.java │ │ │ │ └── UIData.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ ├── static │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── templates │ │ │ ├── book.html │ │ │ ├── bookingsearch.html │ │ │ ├── checkinconfirm.html │ │ │ ├── confirm.html │ │ │ ├── result.html │ │ │ └── search.html │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java └── pom.xml ├── chapter9 ├── chapter9.configserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── configserver │ │ │ │ └── Application.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter9.eurekaserver │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── eurekaserver │ │ │ │ └── EurekaserverApplication.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter9.search-apigateway │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ └── apigateway │ │ │ │ ├── CustomZuulFilter.java │ │ │ │ └── SearchApiGateway.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter9.search │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── .springBeans │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── search │ │ │ │ ├── Application.java │ │ │ │ ├── component │ │ │ │ ├── Receiver.java │ │ │ │ └── SearchComponent.java │ │ │ │ ├── controller │ │ │ │ ├── SearchQuery.java │ │ │ │ └── SearchRestController.java │ │ │ │ ├── entity │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ └── Inventory.java │ │ │ │ └── repository │ │ │ │ └── FlightRepository.java │ │ └── resources │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java ├── chapter9.website │ ├── .classpath │ ├── .mvn │ │ └── wrapper │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.eclipse.wst.common.project.facet.core.xml │ ├── Dockerfile │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── brownfield │ │ │ │ └── pss │ │ │ │ └── client │ │ │ │ ├── Application.java │ │ │ │ ├── BookingRecord.java │ │ │ │ ├── BrownFieldSiteController.java │ │ │ │ ├── CheckInRecord.java │ │ │ │ ├── Fares.java │ │ │ │ ├── Flight.java │ │ │ │ ├── Passenger.java │ │ │ │ ├── SearchQuery.java │ │ │ │ └── UIData.java │ │ └── resources │ │ │ ├── bootstrap.properties │ │ │ ├── static │ │ │ └── css │ │ │ │ └── main.css │ │ │ └── templates │ │ │ ├── book.html │ │ │ ├── bookingsearch.html │ │ │ ├── checkinconfirm.html │ │ │ ├── confirm.html │ │ │ ├── result.html │ │ │ └── search.html │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── ApplicationTests.java └── pom.xml ├── pom.xml └── readme.txt /Hardware and Software requirements.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/Hardware and Software requirements.pdf -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.bootactuator/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | info.app.name=Boot actuator 2 | info.app.description= My Greetings Service 3 | info.app.version=1.0.0 4 | 5 | shell.auth.simple.user.password=admin -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/src/test/java/org/rvslab/actuator/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.actuator; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.bootactuator 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/target/classes/META-INF/maven/org.rvslab/actuator/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:02 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab 5 | m2e.projectName=chapter2.bootactuator 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.bootactuator 7 | artifactId=actuator 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootactuator/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | info.app.name=Boot actuator 2 | info.app.description= My Greetings Service 3 | info.app.version=1.0.0 4 | 5 | shell.auth.simple.user.password=admin -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.bootcustomer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/src/test/java/org/rvslab/customer/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.customer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.bootcustomer 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/target/classes/META-INF/maven/org.rvslab/customer/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:03 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab 5 | m2e.projectName=chapter2.bootcustomer 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.bootcustomer 7 | artifactId=customer 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomer/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.bootcustomernotifcation/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest 5 | 6 | spring.mail.host=localhost 7 | spring.mail.port=2525 -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/src/test/java/org/rvslab/customernotification/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.customernotification; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = Application.class) 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.bootcustomernotifcation 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/target/classes/META-INF/maven/org.rvslab/customernotification/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:03 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab 5 | m2e.projectName=chapter2.bootcustomernotifcation 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.bootcustomernotifcation 7 | artifactId=customernotification 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootcustomernotifcation/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest 5 | 6 | spring.mail.host=localhost 7 | spring.mail.port=2525 -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.boothateoas/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.boothateoas/src/main/resources/application.properties -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/src/test/java/org/rvslab/chapter1/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.chapter1; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.boothateoas 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab.chapter1 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/target/classes/META-INF/maven/org.rvslab.chapter1/boothateoas/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:04 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab.chapter1 5 | m2e.projectName=chapter2.boothateoas 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.boothateoas 7 | artifactId=boothateoas 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.boothateoas/target/classes/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.boothateoas/target/classes/application.properties -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.bootmessaging/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/src/test/java/org/rvslab/chapter1/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.chapter1; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = Application.class) 10 | public class ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.bootmessaging 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab.chapter1 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/target/classes/META-INF/maven/org.rvslab.chapter1/bootmessaging/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:04 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab.chapter1 5 | m2e.projectName=chapter2.bootmessaging 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.bootmessaging 7 | artifactId=bootmessaging 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootmessaging/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | spring.rabbitmq.host=localhost 2 | spring.rabbitmq.port=5672 3 | spring.rabbitmq.username=guest 4 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.bootrest/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:org.rvslab.chapter2.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | security.user.name=guest 2 | security.user.password=guest123 3 | security.oauth2.client.clientId: trustedclient 4 | security.oauth2.client.clientSecret: trustedclient123 5 | security.oauth2.client.authorized-grant-types: authorization_code,refresh_token,password 6 | security.oauth2.client.scope: openid 7 | 8 | server.compression.enabled=true 9 | 10 | bootrest.customproperty=hello -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/src/main/resources/templates/application.yaml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: development 3 | server: 4 | port: 9090 5 | --- 6 | spring: 7 | profiles: production 8 | server: 9 | port: 8080 10 | 11 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.bootrest 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: org.rvslab.chapter1 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/target/classes/META-INF/maven/org.rvslab.chapter1/bootrest/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:04 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=org.rvslab.chapter1 5 | m2e.projectName=chapter2.bootrest 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.bootrest 7 | artifactId=bootrest 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | security.user.name=guest 2 | security.user.password=guest123 3 | security.oauth2.client.clientId: trustedclient 4 | security.oauth2.client.clientSecret: trustedclient123 5 | security.oauth2.client.authorized-grant-types: authorization_code,refresh_token,password 6 | security.oauth2.client.scope: openid 7 | 8 | server.compression.enabled=true 9 | 10 | bootrest.customproperty=hello -------------------------------------------------------------------------------- /chapter2/chapter2.bootrest/target/classes/templates/application.yaml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: development 3 | server: 4 | port: 9090 5 | --- 6 | spring: 7 | profiles: production 8 | server: 9 | port: 8080 10 | 11 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.swagger/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.swagger/src/main/resources/application.properties -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter2.swagger 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: com.example 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/target/classes/META-INF/maven/com.example/swagger/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:06:18 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=com.example 5 | m2e.projectName=chapter2.swagger 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.swagger 7 | artifactId=swagger 8 | -------------------------------------------------------------------------------- /chapter2/chapter2.swagger/target/classes/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/chapter2.swagger/target/classes/application.properties -------------------------------------------------------------------------------- /chapter2/legacyrest/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 12 | org.eclipse.jdt.core.compiler.source=1.6 13 | -------------------------------------------------------------------------------- /chapter2/legacyrest/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter2/legacyrest/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /chapter2/legacyrest/.settings/org.eclipse.wst.ws.service.policy.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.wst.ws.service.policy.projectEnabled=false 3 | -------------------------------------------------------------------------------- /chapter2/legacyrest/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /chapter2/legacyrest/src/main/java/org/rvslab/chapter2/HomeController.java: -------------------------------------------------------------------------------- 1 | package org.rvslab.chapter2; 2 | 3 | import org.springframework.web.bind.annotation.RequestMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | 7 | @RestController 8 | public class HomeController { 9 | 10 | @RequestMapping("/") 11 | public Greet sayHello(){ 12 | return new Greet("Hello World!"); 13 | } 14 | 15 | } 16 | 17 | class Greet { 18 | private String message; 19 | public Greet(String message) { 20 | this.message = message; 21 | } 22 | 23 | public String getMessage() { 24 | return message; 25 | } 26 | 27 | public void setMessage(String message) { 28 | this.message = message; 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /chapter2/legacyrest/src/main/webapp/WEB-INF/spring/root-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /chapter2/legacyrest/src/main/webapp/WEB-INF/views/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 2 | <%@ page session="false" %> 3 | 4 | 5 | Home 6 | 7 | 8 |

9 | Hello world! 10 |

11 | 12 |

The time on the server is ${serverTime}.

13 | 14 | 15 | -------------------------------------------------------------------------------- /chapter2/legacyrest/target/classes/org/rvslab/chapter2/Greet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/legacyrest/target/classes/org/rvslab/chapter2/Greet.class -------------------------------------------------------------------------------- /chapter2/legacyrest/target/classes/org/rvslab/chapter2/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter2/legacyrest/target/classes/org/rvslab/chapter2/HomeController.class -------------------------------------------------------------------------------- /chapter2/legacyrest/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: rajeshrv 3 | Build-Jdk: 1.8.0_45 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /chapter2/legacyrest/target/m2e-wtp/web-resources/META-INF/maven/org.rvslab/chapter2.legacyrest/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:26:34 GST 2016 3 | version=1.0.0-BUILD-SNAPSHOT 4 | groupId=org.rvslab 5 | m2e.projectName=chapter2.legacyrest 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/chapter2.legacyrest 7 | artifactId=chapter2.legacyrest 8 | -------------------------------------------------------------------------------- /chapter2/legacyrest/target/m2e-wtp/web-resources/META-INF/maven/org.rvslab/legacyrest/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Tue Apr 26 22:27:06 GST 2016 3 | version=1.0.0-BUILD-SNAPSHOT 4 | groupId=org.rvslab 5 | m2e.projectName=legacyrest 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter2/legacyrest 7 | artifactId=legacyrest 8 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.book/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.book/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.book/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.book.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/main/java/com/brownfield/pss/book/component/BookingException.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.component; 2 | 3 | public class BookingException extends RuntimeException { 4 | 5 | public BookingException(String message){ 6 | super(message); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/main/java/com/brownfield/pss/book/component/BookingStatus.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.component; 2 | 3 | public class BookingStatus { 4 | 5 | public static final String BOOKING_CONFIRMED = "BOOKING_CONFIRMED"; 6 | public static final String CHECKED_IN = "CHECKED_IN"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/main/java/com/brownfield/pss/book/repository/BookingRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.repository; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | import com.brownfield.pss.book.entity.BookingRecord; 7 | 8 | public interface BookingRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/main/java/com/brownfield/pss/book/repository/InventoryRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.repository; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | import com.brownfield.pss.book.entity.Inventory; 7 | 8 | public interface InventoryRepository extends JpaRepository { 9 | 10 | Inventory findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | 3 | spring.rabbitmq.host=localhost 4 | spring.rabbitmq.port=5672 5 | spring.rabbitmq.username=guest 6 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter4/chapter4.book/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.book.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.checkin/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.checkin.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/src/main/java/com/brownfield/pss/checkin/repository/CheckinRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.checkin.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.brownfield.pss.checkin.entity.CheckInRecord; 6 | 7 | public interface CheckinRepository extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | spring.rabbitmq.host=localhost 3 | spring.rabbitmq.port=5672 4 | spring.rabbitmq.username=guest 5 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter4/chapter4.checkin/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.checkin.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.fares/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.fares.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/src/main/java/com/brownfield/pss/fares/repository/FaresRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.fares.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.brownfield.pss.fares.entity.Fare; 6 | 7 | public interface FaresRepository extends JpaRepository { 8 | Fare getFareByFlightNumberAndFlightDate(String flightNumber, String flightDate); 9 | } 10 | -------------------------------------------------------------------------------- /chapter4/chapter4.fares/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8082 -------------------------------------------------------------------------------- /chapter4/chapter4.fares/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.fares.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter4/chapter4.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter4/chapter4.search/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8083 2 | spring.rabbitmq.host=localhost 3 | spring.rabbitmq.port=5672 4 | spring.rabbitmq.username=guest 5 | spring.rabbitmq.password=guest -------------------------------------------------------------------------------- /chapter4/chapter4.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.testclient/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8085 -------------------------------------------------------------------------------- /chapter4/chapter4.testclient/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter4/chapter4.website/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter4/chapter4.website/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter4/chapter4.website/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=test-client 2 | server.port=8001 3 | -------------------------------------------------------------------------------- /chapter4/chapter4.website/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter4/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.brownfield 8 | pss-parent-4 9 | 1.0 10 | pom 11 | 12 | 13 | chapter4.book 14 | chapter4.checkin 15 | chapter4.fares 16 | chapter4.search 17 | chapter4.testclient 18 | chapter4.website 19 | 20 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.book-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/src/main/java/com/brownfield/pss/book/apigateway/BookingApiGateway.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.apigateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 7 | 8 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 9 | @EnableZuulProxy 10 | @EnableDiscoveryClient 11 | @SpringBootApplication 12 | @EnableSwagger2 13 | public class BookingApiGateway { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(BookingApiGateway.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=book-apigateway 2 | server.port=8065 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.book-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.book.apigateway.BookingApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = BookingApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.book/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.book/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.book/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.book.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/java/com/brownfield/pss/book/component/BookingException.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.component; 2 | 3 | public class BookingException extends RuntimeException { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public BookingException(String message){ 8 | super(message); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/java/com/brownfield/pss/book/component/BookingStatus.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.component; 2 | 3 | public class BookingStatus { 4 | 5 | public static final String BOOKING_CONFIRMED = "BOOKING_CONFIRMED"; 6 | public static final String CHECKED_IN = "CHECKED_IN"; 7 | 8 | } 9 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/java/com/brownfield/pss/book/component/FareServiceProxy.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.component; 2 | 3 | import org.springframework.cloud.netflix.feign.FeignClient; 4 | 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RequestMethod; 7 | import org.springframework.web.bind.annotation.RequestParam; 8 | 9 | @FeignClient(name="fares-service") 10 | public interface FareServiceProxy { 11 | 12 | @RequestMapping(value = "fares/get", method=RequestMethod.GET) 13 | Fare getFare(@RequestParam(value="flightNumber") String flightNumber, @RequestParam(value="flightDate") String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/java/com/brownfield/pss/book/repository/BookingRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.repository; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | import com.brownfield.pss.book.entity.BookingRecord; 7 | 8 | public interface BookingRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/java/com/brownfield/pss/book/repository/InventoryRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.book.repository; 2 | 3 | 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | import com.brownfield.pss.book.entity.Inventory; 7 | 8 | public interface InventoryRepository extends JpaRepository { 9 | 10 | Inventory findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=book-service 2 | server.port=8060 3 | 4 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.book/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.book.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.checkin-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/src/main/java/com/brownfield/pss/checkin/apigateway/CheckinApiGateway.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.checkin.apigateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 7 | 8 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 9 | @EnableZuulProxy 10 | @EnableDiscoveryClient 11 | @SpringBootApplication 12 | @EnableSwagger2 13 | public class CheckinApiGateway { 14 | 15 | public static void main(String[] args) { 16 | SpringApplication.run(CheckinApiGateway.class, args); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=checkin-apigateway 2 | server.port=8075 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.checkin-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.checkin.apigateway.CheckinApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = CheckinApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.checkin/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.checkin.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/src/main/java/com/brownfield/pss/checkin/repository/CheckinRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.checkin.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.brownfield.pss.checkin.entity.CheckInRecord; 6 | 7 | public interface CheckinRepository extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=checkin-service 2 | server.port=8070 3 | 4 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.checkin/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.checkin.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.configserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.configserver.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/src/main/java/com/brownfield/configserver/Application.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.configserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @SpringBootApplication 8 | @EnableConfigServer 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.cloud.config.server.git.uri=file://${user.home}/work/tools/config-repo-new 3 | -------------------------------------------------------------------------------- /chapter5/chapter5.configserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.configserver.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.eurekaserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.eurekaserver.EurekaserverApplication 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/src/main/java/com/brownfield/pss/eurekaserver/EurekaserverApplication.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.eurekaserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaserverApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaserverApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-server1 2 | server.port=8761 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.eurekaserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.eurekaserver.EurekaserverApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaserverApplication.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.fares-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/src/main/java/com/brownfield/pss/fares/apigateway/FaresApiGateway.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.fares.apigateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | import org.springframework.cloud.netflix.zuul.EnableZuulProxy; 7 | 8 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 9 | 10 | @EnableZuulProxy 11 | @EnableDiscoveryClient 12 | @SpringBootApplication 13 | @EnableSwagger2 14 | public class FaresApiGateway { 15 | 16 | public static void main(String[] args) { 17 | SpringApplication.run(FaresApiGateway.class, args); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=fares-apigateway 2 | server.port=8085 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.fares-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.fares.apigateway.FaresApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = FaresApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.fares/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.fares.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/src/main/java/com/brownfield/pss/fares/repository/FaresRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.fares.repository; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.brownfield.pss.fares.entity.Fare; 6 | 7 | public interface FaresRepository extends JpaRepository { 8 | Fare getFareByFlightNumberAndFlightDate(String flightNumber, String flightDate); 9 | } 10 | -------------------------------------------------------------------------------- /chapter5/chapter5.fares/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=fares-service 2 | server.port=8080 3 | 4 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.fares/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.fares.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.search-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.apigateway.SearchApiGateway 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-apigateway 2 | server.port=8095 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.search-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.search.apigateway.SearchApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = SearchApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter5/chapter5.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter5/chapter5.search/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-service 2 | server.port=8090 3 | 4 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter5/chapter5.website/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter5/chapter5.website/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter5/chapter5.website/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter5/chapter5.website/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.website/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter5/chapter5.website/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.website/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter5/chapter5.website/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=test-client 2 | server.port=8001 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter5/chapter5.website/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.configserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfied.pss.lcm.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/src/main/java/com/example/Application.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @EnableConfigServer 8 | @SpringBootApplication 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.cloud.config.server.git.uri=file://${user.home}/work/tools/chapter6-config-repo -------------------------------------------------------------------------------- /chapter6/chapter6.configserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.eurekaserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfied.pss.lcm.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/src/main/java/com/example/Application.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=chapter6-eurekaserver 2 | server.port=8761 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.eurekaserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.lifecyclemanager/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfied.pss.lcm.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/deploymentrules/DeploymentRule.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.deploymentrules; 2 | 3 | public interface DeploymentRule { 4 | public boolean execute(); 5 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/deploymentrules/DeploymentRules.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.deploymentrules; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class DeploymentRules{ 7 | public DeploymentRule getDeploymentRules(String serviceId){ 8 | return new DummyDeploymentRule(); 9 | } 10 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/deploymentrules/DummyDeploymentRule.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.deploymentrules; 2 | 3 | import com.brownfied.pss.lcm.deploymentengine.DeploymentEngine; 4 | 5 | public class DummyDeploymentRule implements DeploymentRule { 6 | private static final int max_instance=2; 7 | 8 | public boolean execute(){ 9 | if(DeploymentEngine.num_instances >= max_instance) return false; 10 | return true; 11 | } 12 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/scalingpolicy/ScalingPolicies.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.scalingpolicy; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class ScalingPolicies{ 7 | public ScalingPolicy getPolicy(String serviceId){ 8 | return new TpmScalingPolicy(); 9 | } 10 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/scalingpolicy/ScalingPolicy.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.scalingpolicy; 2 | 3 | import java.util.Map; 4 | 5 | public interface ScalingPolicy{ 6 | public boolean execute(String serviceId, Map metrics); 7 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/java/com/brownfied/pss/lcm/scalingpolicy/TpmScalingPolicy.java: -------------------------------------------------------------------------------- 1 | package com.brownfied.pss.lcm.scalingpolicy; 2 | 3 | import java.util.Map; 4 | 5 | public class TpmScalingPolicy implements ScalingPolicy { 6 | public boolean execute(String serviceId, Map metrics){ 7 | if(metrics.containsKey("gauge.servo.tpm")){ 8 | Double tpm = (Double) metrics.get("gauge.servo.tpm"); 9 | System.out.println("gauge.servo.tpm " + tpm); 10 | return (tpm > 10); 11 | } 12 | return false; 13 | } 14 | } -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=lifecycle-manager-service 2 | spring.cloud.config.uri=http://localhost:8888 3 | server.port=9090 -------------------------------------------------------------------------------- /chapter6/chapter6.lifecyclemanager/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfied.pss.lcm.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfied.pss.lcm.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=sample-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = Application.class) 11 | @WebAppConfiguration 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Implementation-Title: chapter6.sampleservice 3 | Implementation-Version: 0.0.1-SNAPSHOT 4 | Built-By: rajeshrv 5 | Implementation-Vendor-Id: com.example 6 | Build-Jdk: 1.8.0_45 7 | Created-By: Maven Integration for Eclipse 8 | Implementation-Vendor: Pivotal Software, Inc. 9 | 10 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/classes/META-INF/maven/com.example/demo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon Apr 25 19:40:44 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=com.example 5 | m2e.projectName=chapter6.sampleservice 6 | m2e.projectLocation=/Users/rajeshrv/work/codebox/chapter6/chapter6.sampleservice 7 | artifactId=demo 8 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/classes/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=sample-service 2 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/classes/com/example/Application.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/classes/com/example/Application.class -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/classes/com/example/GreetController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/classes/com/example/GreetController.class -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/demo-0.0.1-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/demo-0.0.1-SNAPSHOT.jar -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/demo-0.0.1-SNAPSHOT.jar.original: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/demo-0.0.1-SNAPSHOT.jar.original -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Sat Feb 06 22:14:39 GST 2016 3 | version=0.0.1-SNAPSHOT 4 | groupId=com.example 5 | artifactId=demo 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/rajeshrv/work/codebox/chapter6/chapter6.sampleservice/src/main/java/com/example/Application.java 2 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /Users/rajeshrv/work/codebox/chapter6/chapter6.sampleservice/src/test/java/com/example/ApplicationTests.java 2 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/surefire-reports/com.example.ApplicationTests.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------- 2 | Test set: com.example.ApplicationTests 3 | ------------------------------------------------------------------------------- 4 | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.779 sec - in com.example.ApplicationTests 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.sampleservice/target/test-classes/com/example/ApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.sampleservice/target/test-classes/com/example/ApplicationTests.class -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.search-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.apigateway.SearchApiGateway 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-apigateway 2 | server.port=8095 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.search-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.search.apigateway.SearchApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = SearchApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter6/chapter6.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter6/chapter6.search/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-service 2 | server.port=8090 3 | 4 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter6/chapter6.website/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter6/chapter6.website/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter6/chapter6.website/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter6/chapter6.website/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.website/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter6/chapter6.website/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.website/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter6/chapter6.website/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=test-client 2 | server.port=8001 3 | spring.cloud.config.uri=http://localhost:8888 -------------------------------------------------------------------------------- /chapter6/chapter6.website/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.configserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.configserver.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/src/main/java/com/brownfield/configserver/Application.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.configserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @SpringBootApplication 8 | @EnableConfigServer 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.cloud.config.server.git.uri=file://${user.home}/work/tools/config-repo-7 3 | management.security.enabled=false 4 | 5 | 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.configserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.configserver.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.eurekaserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.eurekaserver.EurekaserverApplication 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/src/main/java/com/brownfield/pss/eurekaserver/EurekaserverApplication.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.eurekaserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaserverApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaserverApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-server1 2 | server.port=8761 3 | spring.cloud.config.uri=http://localhost:8888 4 | -------------------------------------------------------------------------------- /chapter7/chapter7.eurekaserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.eurekaserver.EurekaserverApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaserverApplication.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.hystrixdashboard/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/src/main/java/com/example/HysterixdashboardApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard; 6 | 7 | @EnableHystrixDashboard 8 | @SpringBootApplication 9 | public class HysterixdashboardApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(HysterixdashboardApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9999 2 | -------------------------------------------------------------------------------- /chapter7/chapter7.hystrixdashboard/src/test/java/com/example/HysterixdashboardApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringApplicationConfiguration(classes = HysterixdashboardApplication.class) 10 | public class HysterixdashboardApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.search-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.apigateway.SearchApiGateway 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-apigateway 2 | server.port=8095 3 | spring.cloud.config.uri=http://localhost:8888 4 | -------------------------------------------------------------------------------- /chapter7/chapter7.search-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.search.apigateway.SearchApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = SearchApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter7/chapter7.search/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-service 2 | server.port=8090 3 | 4 | spring.cloud.config.uri=http://localhost:8888 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter7/chapter7.turbineServer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles=pom.xml 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/src/main/java/com/example/TurbineServerApplication.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard; 6 | import org.springframework.cloud.netflix.turbine.EnableTurbine; 7 | 8 | @EnableTurbine 9 | @EnableHystrixDashboard 10 | @SpringBootApplication 11 | public class TurbineServerApplication { 12 | 13 | public static void main(String[] args) { 14 | SpringApplication.run(TurbineServerApplication.class, args); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/src/main/resources/bootstrap.yaml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | application: 4 | name : turbineserver 5 | turbine: 6 | clusterNameExpression: new String('default') 7 | appConfig : search-apigateway,search-service 8 | server: 9 | port: 9090 10 | eureka: 11 | client: 12 | serviceUrl: 13 | defaultZone: http://localhost:8761/eureka/ 14 | -------------------------------------------------------------------------------- /chapter7/chapter7.turbineServer/src/test/java/com/example/TurbineServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | import org.springframework.boot.test.SpringApplicationConfiguration; 7 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 8 | 9 | @RunWith(SpringJUnit4ClassRunner.class) 10 | @SpringApplicationConfiguration(classes = TurbineServerApplication.class) 11 | @WebAppConfiguration 12 | public class TurbineServerApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter8/chapter8.configserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.configserver.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/src/main/java/com/brownfield/configserver/Application.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.configserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @SpringBootApplication 8 | @EnableConfigServer 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.cloud.config.server.git.uri=file://${user.home}/work/tools/config-repo-ch8 3 | -------------------------------------------------------------------------------- /chapter8/chapter8.configserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.configserver.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter8/chapter8.eurekaserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.eurekaserver.EurekaserverApplication 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/src/main/java/com/brownfield/pss/eurekaserver/EurekaserverApplication.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.eurekaserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaserverApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaserverApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-server1 2 | server.port=8761 3 | spring.cloud.config.uri=http://192.168.0.106:8888 -------------------------------------------------------------------------------- /chapter8/chapter8.eurekaserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.eurekaserver.EurekaserverApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaserverApplication.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter8/chapter8.search-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.apigateway.SearchApiGateway 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/search-apigateway-1.0.jar search-api.jar 5 | EXPOSE 8095 6 | ENTRYPOINT ["java","-jar","/search-api.jar"] 7 | -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-apigateway 2 | server.port=8095 3 | spring.cloud.config.uri=http://192.168.0.106:8888 -------------------------------------------------------------------------------- /chapter8/chapter8.search-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.search.apigateway.SearchApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = SearchApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter8/chapter8.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter8/chapter8.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter8/chapter8.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/search-1.0.jar search.jar 5 | EXPOSE 8090 6 | ENTRYPOINT ["java","-jar","/search.jar"] 7 | 8 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter8/chapter8.search/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-service 2 | server.port=8090 3 | 4 | spring.cloud.config.uri=http://192.168.0.106:8888 5 | 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter8/chapter8.website/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter8/chapter8.website/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter8/chapter8.website/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/website-1.0.jar website.jar 5 | EXPOSE 8090 6 | ENTRYPOINT ["java","-jar","/website.jar"] 7 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=test-client 2 | server.port=8001 3 | spring.cloud.config.uri=http://192.168.0.106:8888 4 | -------------------------------------------------------------------------------- /chapter8/chapter8.website/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter8/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.brownfield 8 | pss-parent-8 9 | 1.0 10 | pom 11 | 12 | 13 | chapter8.search 14 | chapter8.search-apigateway 15 | chapter8.configserver 16 | chapter8.eurekaserver 17 | chapter8.website 18 | 19 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter9/chapter9.configserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.configserver.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/src/main/java/com/brownfield/configserver/Application.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.configserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.config.server.EnableConfigServer; 6 | 7 | @SpringBootApplication 8 | @EnableConfigServer 9 | public class Application { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(Application.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | server.port=8888 2 | spring.cloud.config.server.git.uri=file://${user.home}/work/tools/config-repo-ch8 3 | -------------------------------------------------------------------------------- /chapter9/chapter9.configserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.configserver.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter9/chapter9.eurekaserver/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.eurekaserver.EurekaserverApplication 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/src/main/java/com/brownfield/pss/eurekaserver/EurekaserverApplication.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.eurekaserver; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @EnableEurekaServer 8 | @SpringBootApplication 9 | public class EurekaserverApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaserverApplication.class, args); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=eureka-server1 2 | server.port=8761 3 | spring.cloud.config.uri=http://192.168.0.106:8888 -------------------------------------------------------------------------------- /chapter9/chapter9.eurekaserver/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.eurekaserver.EurekaserverApplication; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = EurekaserverApplication.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter9/chapter9.search-apigateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.apigateway.SearchApiGateway 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/search-apigateway-1.0.jar search-api.jar 5 | EXPOSE 8095 6 | ENTRYPOINT ["java","-jar","/search-api.jar"] 7 | -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-apigateway 2 | server.port=8095 3 | spring.cloud.config.uri=http://192.168.0.106:8888 -------------------------------------------------------------------------------- /chapter9/chapter9.search-apigateway/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.search.apigateway.SearchApiGateway; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = SearchApiGateway.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter9/chapter9.search/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/chapter9.search/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter9/chapter9.search/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | java:com.brownfield.pss.search.Application 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/search-1.0.jar search.jar 5 | EXPOSE 8090 6 | ENTRYPOINT ["java","-jar","/search.jar"] 7 | 8 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/src/main/java/com/brownfield/pss/search/repository/FlightRepository.java: -------------------------------------------------------------------------------- 1 | package com.brownfield.pss.search.repository; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.data.jpa.repository.JpaRepository; 7 | 8 | import com.brownfield.pss.search.entity.Flight; 9 | 10 | public interface FlightRepository extends JpaRepository { 11 | List findByOriginAndDestinationAndFlightDate(String origin,String destination, String flightDate); 12 | 13 | Flight findByFlightNumberAndFlightDate(String flightNumber, String flightDate); 14 | } -------------------------------------------------------------------------------- /chapter9/chapter9.search/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=search-service 2 | server.port=8090 3 | 4 | spring.cloud.config.uri=http://192.168.0.106:8888 5 | 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.search/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.test.context.web.WebAppConfiguration; 6 | 7 | import com.brownfield.pss.search.Application; 8 | 9 | import org.springframework.boot.test.SpringApplicationConfiguration; 10 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 11 | 12 | @RunWith(SpringJUnit4ClassRunner.class) 13 | @SpringApplicationConfiguration(classes = Application.class) 14 | @WebAppConfiguration 15 | public class ApplicationTests { 16 | 17 | @Test 18 | public void contextLoads() { 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajeshrv/SpringMicroservice/72d3c1e07f5ef3bd89922ddac3c7798f9a3795a7/chapter9/chapter9.website/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/chapter9.website/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip -------------------------------------------------------------------------------- /chapter9/chapter9.website/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding/=UTF-8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.8 6 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM frolvlad/alpine-oraclejdk8 3 | VOLUME /tmp 4 | ADD target/website-1.0.jar website.jar 5 | EXPOSE 8090 6 | ENTRYPOINT ["java","-jar","/website.jar"] 7 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=test-client 2 | server.port=8001 3 | spring.cloud.config.uri=http://192.168.0.106:8888 4 | -------------------------------------------------------------------------------- /chapter9/chapter9.website/src/test/java/com/example/ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.SpringApplicationConfiguration; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | import com.brownfield.pss.client.Application; 9 | 10 | @RunWith(SpringJUnit4ClassRunner.class) 11 | @SpringApplicationConfiguration(classes = Application.class) 12 | public class ApplicationTests { 13 | 14 | @Test 15 | public void contextLoads() { 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /chapter9/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.brownfield 8 | pss-parent-9 9 | 1.0 10 | pom 11 | 12 | 13 | chapter9.search 14 | chapter9.search-apigateway 15 | chapter9.configserver 16 | chapter9.eurekaserver 17 | chapter9.website 18 | 19 | --------------------------------------------------------------------------------