File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM openjdk:11-jre-slim
22
3- LABEL maintainer="Subhrodip Mohanta"
4- 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
911EXPOSE 8080
1012
11- CMD [ "java" , "-jar" , "/usr/local/retail.banking/retail.banking-0.1.0. jar" ]
13+ ENTRYPOINT [ "java" , "-jar" , "/app. jar" ]
Original file line number Diff line number Diff line change 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
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 >
Original file line number Diff line number Diff line change 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
3333spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.MySQLInnoDBDialect
3434spring.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)
You can’t perform that action at this time.
0 commit comments