From 92c519ee5b4ff9d2d05a0960e0aa6acfc91e7b0e Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Mon, 16 Mar 2020 01:03:09 +0100 Subject: [PATCH] Add boiler plate code, Add run config, update dependencies --- .idea/runConfigurations/PwgenApplication.xml | 10 ++++++++++ build.gradle | 3 ++- gradle/wrapper/gradle-wrapper.properties | 5 +++-- .../java/de/icaotix/pwgen/HelloController.java | 14 ++++++++++++++ src/main/resources/application.properties | 2 +- 5 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .idea/runConfigurations/PwgenApplication.xml create mode 100644 src/main/java/de/icaotix/pwgen/HelloController.java diff --git a/.idea/runConfigurations/PwgenApplication.xml b/.idea/runConfigurations/PwgenApplication.xml new file mode 100644 index 0000000..06ae90c --- /dev/null +++ b/.idea/runConfigurations/PwgenApplication.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/build.gradle b/build.gradle index 8924142..8ece9a9 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,8 @@ repositories { } dependencies { - implementation 'org.springframework.boot:spring-boot-starter' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-actuator' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a2bf131..a14289d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Mon Mar 16 00:54:08 CET 2020 +distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/src/main/java/de/icaotix/pwgen/HelloController.java b/src/main/java/de/icaotix/pwgen/HelloController.java new file mode 100644 index 0000000..5406e66 --- /dev/null +++ b/src/main/java/de/icaotix/pwgen/HelloController.java @@ -0,0 +1,14 @@ +package de.icaotix.pwgen; + +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.RequestMapping; + +@RestController +public class HelloController { + + @RequestMapping("/") + public String index() { + return "Greetings from Spring Boot!"; + } + +} \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8b13789..d34b83e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1 @@ - +server.port=80 \ No newline at end of file