Skip to content

Commit d4c0769

Browse files
edited, added files
1 parent 8e1c5b3 commit d4c0769

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

.DS_Store

6 KB
Binary file not shown.

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM openjdk:11
2+
ADD target/mydictionary_rest_api.jar mydictionary_rest_api.jar
3+
EXPOSE 8086
4+
ENTRYPOINT ["java", "-jar", "mydictionary_rest_api.jar"]
Binary file not shown.

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<plugin>
4444
<groupId>org.springframework.boot</groupId>
4545
<artifactId>spring-boot-maven-plugin</artifactId>
46+
<configuration>
47+
<finalName>mydictionary_rest_api</finalName>
48+
</configuration>
4649
</plugin>
4750
</plugins>
4851
</build>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Manifest-Version: 1.0
2+
Main-Class: com.dchprojects.mydictionaryrestapi.MydictionaryRestApiAppli
3+
cation
4+
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
spring.jpa.hibernate.ddl-auto=none
21
spring.datasource.url=jdbc:mysql://mysql-my-dictionary-standalone:3306/my_dictionary_database
32
spring.datasource.username=d9d9vs9
43
spring.datasource.password=Vagina$2020
54

6-
server.port=8086
5+
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
6+
spring.jpa.show-sql=false
7+
spring.jpa.hibernate.ddl-auto=create
78

9+
server.port=8086

src/test/java/com/dchprojects/mydictionaryrestapi/MydictionaryRestApiApplicationTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66
@SpringBootTest
77
class MydictionaryRestApiApplicationTests {
88

9-
@Test
10-
void contextLoads() {
11-
}
12-
139
}

0 commit comments

Comments
 (0)