This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| ext { | |
| springBootVersion = "1.5.2.RELEASE" | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hudsonmendes.microservice1; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| @SpringBootApplication | |
| public class AppEntry { | |
| public static void main(final String[] args) { | |
| SpringApplication.run(AppEntry.class, args); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hudsonmendes.microservice1; | |
| import static org.springframework.http.ResponseEntity.badRequest; | |
| import static org.springframework.http.ResponseEntity.ok; | |
| import static org.springframework.web.bind.annotation.RequestMethod.POST; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Map; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hudsonmendes.microservice1; | |
| import static org.hamcrest.Matchers.hasSize; | |
| import static org.springframework.http.MediaType.APPLICATION_JSON; | |
| import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; | |
| import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | |
| import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; | |
| import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | |
| import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring: | |
| application: | |
| name: belfastjug-sample-01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| ext { | |
| springBootVersion = "1.5.2.RELEASE" | |
| gradleDockerVersion = "1.2" | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM frolvlad/alpine-oraclejdk8:slim | |
| ENV MONGO_URL mongodb://localhost/belfastjug_sample_01 | |
| EXPOSE 8080 | |
| RUN mkdir -p /app/ | |
| ADD build/libs/belfastjug-sample-01-0.0.1-SNAPSHOT.jar /app/belfastjug-sample-01.jar | |
| ENTRYPOINT ["java", "-jar", "/app/belfastjug-sample-01.jar"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| ext { | |
| springBootVersion = "1.5.2.RELEASE" | |
| gradleDockerVersion = "1.2" | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hudsonmendes.microservice1; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.data.mongodb.repository.config.EnableMongoRepositories; | |
| @SpringBootApplication | |
| @EnableMongoRepositories | |
| public class AppEntry { | |
| public static void main(final String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.hudsonmendes.microservice1; | |
| import static org.springframework.http.ResponseEntity.badRequest; | |
| import static org.springframework.http.ResponseEntity.ok; | |
| import static org.springframework.web.bind.annotation.RequestMethod.POST; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.UUID; |
OlderNewer