Skip to content

Instantly share code, notes, and snippets.

View hudsonmendes's full-sized avatar
🤓
Learning, Deep!

Hudson Leonardo MENDES hudsonmendes

🤓
Learning, Deep!
View GitHub Profile
buildscript {
ext {
springBootVersion = "1.5.2.RELEASE"
gradleDockerVersion = "1.2"
}
repositories {
mavenCentral()
}
dependencies {
spring:
application:
name: belfastjug-sample-01
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;
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;
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);
}
buildscript {
ext {
springBootVersion = "1.5.2.RELEASE"
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")