Move files around
This commit is contained in:
13
src/main/java/be/seeseepuff/pcinv/PcinvApplication.java
Normal file
13
src/main/java/be/seeseepuff/pcinv/PcinvApplication.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package be.seeseepuff.pcinv;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class PcinvApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(PcinvApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package be.seeseepuff.pcinv.controllers;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@Controller
|
||||
public class WebController {
|
||||
@GetMapping("/")
|
||||
public String index() {
|
||||
return "index"; // This will resolve to src/main/resources/templates/index.html
|
||||
}
|
||||
}
|
||||
1
src/main/resources/application.properties
Normal file
1
src/main/resources/application.properties
Normal file
@@ -0,0 +1 @@
|
||||
spring.application.name=pcinv
|
||||
9
src/main/resources/templates/index.html
Normal file
9
src/main/resources/templates/index.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PC Inventory</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello, world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
13
src/test/java/be/seeseepuff/pcinv/PcinvApplicationTests.java
Normal file
13
src/test/java/be/seeseepuff/pcinv/PcinvApplicationTests.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package be.seeseepuff.pcinv;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class PcinvApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user