Skip to content

Commit 9a8e7a8

Browse files
committed
add app source code
1 parent 587e632 commit 9a8e7a8

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

pom.xml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>org.springframework.boot</groupId>
8+
<artifactId>spring-boot-starter-parent</artifactId>
9+
<version>2.4.5</version>
10+
<relativePath/> <!-- lookup parent from repository -->
11+
</parent>
12+
13+
<groupId>pt.neto.joao</groupId>
14+
<artifactId>example-devspace-spring-boot</artifactId>
15+
<version>0.0.1-SNAPSHOT</version>
16+
<name>Devspace Example with Spring Boot</name>
17+
<description>An example application</description>
18+
19+
<properties>
20+
<java.version>11</java.version>
21+
<start-class>pt.neto.joao.exampledevspacespringboot.ExampleApplication</start-class>
22+
<spring-cloud.version>2020.0.2</spring-cloud.version>
23+
<spring-cloud-kubernetes.version>2.0.2</spring-cloud-kubernetes.version>
24+
</properties>
25+
26+
<dependencies>
27+
<dependency>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-starter-web</artifactId>
30+
</dependency>
31+
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-devtools</artifactId>
35+
<scope>runtime</scope>
36+
<optional>true</optional>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-test</artifactId>
41+
<scope>test</scope>
42+
</dependency>
43+
<dependency>
44+
<groupId>org.springframework.cloud</groupId>
45+
<artifactId>spring-cloud-starter-kubernetes-fabric8-all</artifactId>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.springframework.boot</groupId>
49+
<artifactId>spring-boot-starter-actuator</artifactId>
50+
</dependency>
51+
</dependencies>
52+
53+
<dependencyManagement>
54+
<dependencies>
55+
<dependency>
56+
<groupId>org.springframework.cloud</groupId>
57+
<artifactId>spring-cloud-dependencies</artifactId>
58+
<version>${spring-cloud.version}</version>
59+
<type>pom</type>
60+
<scope>import</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.springframework.cloud</groupId>
64+
<artifactId>spring-cloud-kubernetes-dependencies</artifactId>
65+
<version>${spring-cloud-kubernetes.version}</version>
66+
<type>pom</type>
67+
<scope>import</scope>
68+
</dependency>
69+
</dependencies>
70+
</dependencyManagement>
71+
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.springframework.boot</groupId>
76+
<artifactId>spring-boot-maven-plugin</artifactId>
77+
</plugin>
78+
</plugins>
79+
</build>
80+
81+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package pt.neto.joao.exampledevspacespringboot;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class ExampleApplication {
8+
public static void main(String[] args) {
9+
SpringApplication.run(ExampleApplication.class, args);
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package pt.neto.joao.exampledevspacespringboot;
2+
3+
import org.springframework.web.bind.annotation.RequestMapping;
4+
import org.springframework.web.bind.annotation.RestController;
5+
6+
@RestController
7+
public class HelloController {
8+
@RequestMapping("/")
9+
public String index() {
10+
return "Greetings from Spring Boot and Devspace!";
11+
}
12+
}

src/main/resources/application.properties

Whitespace-only changes.

0 commit comments

Comments
 (0)