Skip to content

Commit

Permalink
setting: db connection time out일 경우 auto-reconnect 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehan4707 committed Jul 27, 2024
1 parent 59f0213 commit e2e8455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/mybatis-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<typeAlias type="com.mimo.server.dto.TagDto" alias="TagDto"/>
<typeAlias type="com.mimo.server.dto.PostDto" alias="PostDto"/>
<typeAlias type="com.mimo.server.dto.HashTagDto" alias="HashTagDto"/>
<typeAlias type="com.mimo.server.dto.ResponsePostListDto" alias="ResponsePostListDto" />
<typeAlias type="com.mimo.server.dto.ResponsePostListDto" alias="ResponsePostListDto"/>
</typeAliases>

<environments default="development">
Expand All @@ -20,7 +20,7 @@
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="url"
value="jdbc:mysql://15.164.2.228:3306/mimoDB?serverTimezone=Asia/Seoul&amp;useUniCode=yes&amp;characterEncoding=UTF-8"/>
value="jdbc:mysql://15.164.2.228:3306/mimoDB?serverTimezone=Asia/Seoul&amp;useUniCode=yes&amp;characterEncoding=UTF-8&amp;autoReconnect=true&amp;allowMultiQueries=true&amp;validationInterval=60000&amp;useSSL=false&amp;allowPublicKeyRetrieval=true&amp;jdbcCompliantTruncation=false"/>
<property name="username" value="root"/>
<property name="password" value="mimoServer1!"/>
</dataSource>
Expand Down

0 comments on commit e2e8455

Please sign in to comment.