-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis van Loon
committed
Oct 25, 2022
1 parent
3919b55
commit cab760c
Showing
4 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ build/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
.mvn/ | ||
mvnw* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM eclipse-temurin:17-jdk-alpine | ||
VOLUME /tmp | ||
ARG JAR_FILE | ||
COPY ${JAR_FILE} app.jar | ||
ENTRYPOINT ["java","-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
<#import "/spring.ftl" as spring/> | ||
<html> | ||
<body> | ||
Hello there, you currently have ${contracts?size} contracts | ||
<html lang="en"> | ||
<body> | ||
<div>Hello there, you currently have ${contracts?size} contracts</div> | ||
|
||
<form name="upload" enctype="multipart/form-data" action="/contract" method="POST"> | ||
<p> | ||
<div><input id="file" type="file" name="file"></div> | ||
</p> | ||
<p> | ||
<input type="submit" value="Upload file"> | ||
</p> | ||
</form> | ||
</body> | ||
<div> | ||
<form name="upload" enctype="multipart/form-data" action="/contract" method="POST"> | ||
<input id="file" type="file" name="file"> | ||
<input type="submit" value="Upload file"> | ||
</form> | ||
</div> | ||
|
||
<div> | ||
<table> | ||
<tr> | ||
<th>id</th> | ||
<th>fileName</th> | ||
<th>fileType</th> | ||
<th>download</th> | ||
</tr> | ||
<#foreach contract in contracts> | ||
<tr> | ||
<td>${contract.id}</td> | ||
<td>${contract.fileName}</td> | ||
<td>${contract.fileType}</td> | ||
<td><a href="download/${contract.id}">download</a></td> | ||
</tr> | ||
</#foreach> | ||
</table> | ||
</div> | ||
</body> | ||
</html> |