Skip to content

Commit

Permalink
update spring boot version to 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ohbus committed Aug 28, 2020
1 parent fe0c649 commit b78b5dc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM openjdk:11-jre-slim

LABEL maintainer="Subhrodip Mohanta"
LABEL email="[email protected]"
LABEL application="Retail Banking"
LABEL maintainer="Subhrodip Mohanta [email protected]"
LABEL artifact="retial-banking"
LABEL name="Retail Banking"

COPY target/retail.banking-0.1.0.jar /usr/local/retail.banking/
ARG JAR_FILE=target/*.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8080

CMD ["java", "-jar", "/usr/local/retail.banking/retail.banking-0.1.0.jar"]
ENTRYPOINT [ "java", "-jar", "/app.jar" ]
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.0.RELEASE</version>
<version>2.3.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>xyz.subho</groupId>
<artifactId>retail.banking</artifactId>
<version>0.1.0</version>
<version>1.0</version>
<name>retail.banking</name>
<description>Retail banking project using MVC for TCS Case Study using Agile Methodologies</description>

Expand All @@ -37,6 +37,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
9 changes: 5 additions & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===============================
# = DATA SOURCE
# ========= DATA SOURCE =========
# ===============================

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


# ===============================
# = JPA / HIBERNATE
# ======= JPA / HIBERNATE =======
# ===============================

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


# ===============================
# === CHANGE SERVER PORT HERE ===
# ===============================
# = CHANGE SERVER PORT HERE
# ==============================
#server.port=8080 (uncomment this line to change the default port)

0 comments on commit b78b5dc

Please sign in to comment.