File tree Expand file tree Collapse file tree 2 files changed +43
-5
lines changed
pizza/src/main/java/ch/fhnw/pizza Expand file tree Collapse file tree 2 files changed +43
-5
lines changed Original file line number Diff line number Diff line change
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/java
3
+ {
4
+ "name" : " Java" ,
5
+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
+ "image" : " mcr.microsoft.com/devcontainers/java:0-17" ,
7
+
8
+ "features" : {
9
+ "ghcr.io/devcontainers/features/java:1" : {
10
+ "version" : " none" ,
11
+ "installMaven" : " true" ,
12
+ "installGradle" : " false"
13
+ }
14
+ },
15
+
16
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
17
+ "forwardPorts" : [8080 ],
18
+
19
+ // Use 'postCreateCommand' to run commands after the container is created.
20
+ // "postCreateCommand": "java -version",
21
+
22
+ // Configure tool-specific properties.
23
+ "customizations" : {
24
+ // Configure properties specific to VS Code.
25
+ "vscode" : {
26
+ // Set *default* container specific settings.json values on container create.
27
+ "settings" : {},
28
+ "extensions" : [
29
+ " vscjava.vscode-java-pack" ,
30
+ " vmware.vscode-boot-dev-pack" ,
31
+ " vmware.vscode-spring-boot"
32
+ ]
33
+ }
34
+ }
35
+
36
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37
+ // "remoteUser": "root"
38
+ }
Original file line number Diff line number Diff line change 2
2
3
3
import org .springframework .boot .SpringApplication ;
4
4
import org .springframework .boot .autoconfigure .SpringBootApplication ;
5
- // import org.springframework.web.bind.annotation.GetMapping;
6
- // import org.springframework.web.bind.annotation.RestController;
5
+ import org .springframework .web .bind .annotation .GetMapping ;
6
+ import org .springframework .web .bind .annotation .RestController ;
7
7
8
8
@ SpringBootApplication
9
- // @RestController
9
+ @ RestController
10
10
public class PizzaApplication {
11
11
12
12
public static void main (String [] args ) {
13
13
SpringApplication .run (PizzaApplication .class , args );
14
14
}
15
15
16
- /* @GetMapping(value="/")
16
+ @ GetMapping (value ="/" )
17
17
public String getWelcomeString () {
18
18
19
19
return "Pizza Takeaway Service, welcome!" ;
20
- } */
20
+ }
21
21
22
22
}
You can’t perform that action at this time.
0 commit comments