File tree Expand file tree Collapse file tree 3 files changed +20
-28
lines changed Expand file tree Collapse file tree 3 files changed +20
-28
lines changed Original file line number Diff line number Diff line change 1
- web : java $JAVA_OPTS -jar target/dependency/jetty-runner.jar -- port $PORT target/* .war
1
+ web : java -Dserver. port= $PORT -jar target/* .jar
Original file line number Diff line number Diff line change 73
73
<artifactId >spring-boot-devtools</artifactId >
74
74
<scope >runtime</scope >
75
75
</dependency >
76
- <!-- <dependency>
77
- <groupId>mysql</groupId>
78
- <artifactId>mysql-connector-java</artifactId>
79
- <scope>runtime</scope>
80
- </dependency>-->
76
+ <dependency >
77
+ <groupId >org.springframework.boot</groupId >
78
+ <artifactId >spring-boot-starter-jdbc</artifactId >
79
+ </dependency >
80
+ <dependency >
81
+ <groupId >org.postgresql</groupId >
82
+ <artifactId >postgresql</artifactId >
83
+ </dependency >
84
+
81
85
82
- <!-- Jaxb for java 11-->
86
+ <!-- Jaxb for java 11-->
83
87
<!-- API, java.xml.bind module -->
84
88
<dependency >
85
89
<groupId >jakarta.xml.bind</groupId >
152
156
153
157
<build >
154
158
<plugins >
155
- <plugin >
156
- <groupId >org.apache.maven.plugins</groupId >
157
- <artifactId >maven-dependency-plugin</artifactId >
158
- <version >2.4</version >
159
- <executions >
160
- <execution >
161
- <phase >package</phase >
162
- <goals ><goal >copy</goal ></goals >
163
- <configuration >
164
- <artifactItems >
165
- <artifactItem >
166
- <groupId >org.eclipse.jetty</groupId >
167
- <artifactId >jetty-runner</artifactId >
168
- <version >9.4.9.v20180320</version >
169
- <destFileName >jetty-runner.jar</destFileName >
170
- </artifactItem >
171
- </artifactItems >
172
- </configuration >
173
- </execution >
174
- </executions >
175
- </plugin >
176
159
<plugin >
177
160
<groupId >org.springframework.boot</groupId >
178
161
<artifactId >spring-boot-maven-plugin</artifactId >
Original file line number Diff line number Diff line change @@ -34,6 +34,15 @@ spring.jpa.hibernate.ddl-auto=update
34
34
35
35
36
36
37
+ spring.datasource.driverClassName =org.postgresql.Driver
38
+ spring.datasource.maxActive =10
39
+ spring.datasource.maxIdle =5
40
+ spring.datasource.minIdle =2
41
+ spring.datasource.initialSize =5
42
+ spring.datasource.removeAbandoned =true
43
+
44
+
45
+
37
46
# # Hibernate Properties
38
47
# The SQL dialect makes Hibernate generate better SQL for the chosen database
39
48
# spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
You can’t perform that action at this time.
0 commit comments