Skip to content

Commit b78b5dc

Browse files
committed
update spring boot version to 2.3.3
1 parent fe0c649 commit b78b5dc

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM openjdk:11-jre-slim
22

3-
LABEL maintainer="Subhrodip Mohanta"
4-
LABEL email="[email protected]"
5-
LABEL application="Retail Banking"
3+
LABEL maintainer="Subhrodip Mohanta [email protected]"
4+
LABEL artifact="retial-banking"
5+
LABEL name="Retail Banking"
66

7-
COPY target/retail.banking-0.1.0.jar /usr/local/retail.banking/
7+
ARG JAR_FILE=target/*.jar
8+
9+
COPY ${JAR_FILE} app.jar
810

911
EXPOSE 8080
1012

11-
CMD ["java", "-jar", "/usr/local/retail.banking/retail.banking-0.1.0.jar"]
13+
ENTRYPOINT [ "java", "-jar", "/app.jar" ]

pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.3.0.RELEASE</version>
8+
<version>2.3.3.RELEASE</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>xyz.subho</groupId>
1212
<artifactId>retail.banking</artifactId>
13-
<version>0.1.0</version>
13+
<version>1.0</version>
1414
<name>retail.banking</name>
1515
<description>Retail banking project using MVC for TCS Case Study using Agile Methodologies</description>
1616

@@ -37,6 +37,12 @@
3737
<groupId>org.springframework.boot</groupId>
3838
<artifactId>spring-boot-starter-data-jpa</artifactId>
3939
</dependency>
40+
41+
<dependency>
42+
<groupId>com.h2database</groupId>
43+
<artifactId>h2</artifactId>
44+
<scope>test</scope>
45+
</dependency>
4046

4147
<dependency>
4248
<groupId>org.springframework.boot</groupId>

src/main/resources/application.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ===============================
2-
# = DATA SOURCE
2+
# ========= DATA SOURCE =========
33
# ===============================
44

55
# Set here configurations for the database connection
@@ -15,7 +15,7 @@ spring.datasource.validationQuery=SELECT 1
1515

1616

1717
# ===============================
18-
# = JPA / HIBERNATE
18+
# ======= JPA / HIBERNATE =======
1919
# ===============================
2020

2121
# Use spring.jpa.properties.* for Hibernate native properties (the prefix is
@@ -33,7 +33,8 @@ spring.jpa.hibernate.ddl-auto=validate
3333
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
3434
spring.jpa.properties.hibernate.id.new_generator_mappings=false
3535

36+
37+
# ===============================
38+
# === CHANGE SERVER PORT HERE ===
3639
# ===============================
37-
# = CHANGE SERVER PORT HERE
38-
# ==============================
3940
#server.port=8080 (uncomment this line to change the default port)

0 commit comments

Comments
 (0)