Add boiler plate code, Add run config, update dependencies
This commit is contained in:
parent
2fb6991dbc
commit
92c519ee5b
10
.idea/runConfigurations/PwgenApplication.xml
Normal file
10
.idea/runConfigurations/PwgenApplication.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="PwgenApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
|
||||
<module name="passwordgenerator.main" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="de.icaotix.pwgen.PwgenApplication" />
|
||||
<option name="ALTERNATIVE_JRE_PATH" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
@ -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'
|
||||
}
|
||||
|
5
gradle/wrapper/gradle-wrapper.properties
vendored
5
gradle/wrapper/gradle-wrapper.properties
vendored
@ -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
|
||||
|
14
src/main/java/de/icaotix/pwgen/HelloController.java
Normal file
14
src/main/java/de/icaotix/pwgen/HelloController.java
Normal file
@ -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!";
|
||||
}
|
||||
|
||||
}
|
@ -1 +1 @@
|
||||
|
||||
server.port=80
|
Loading…
Reference in New Issue
Block a user