별도로 h2 서버를 띄우지 않고

 

멀티 커넥션을 구성할 수 있는 방법이다

 

spring:
  datasource:
    url: "jdbc:h2:~/e-commerce-dev;AUTO_SERVER=TRUE"

 

 

다음과 같이 AUTO_SERVER=TRUE 옵션을 붙여주면 된다.

 

 

 

 

 

 

 

https://stackoverflow.com/questions/12401991/h2-database-multiple-connections

 

H2 Database multiple connections

I have the following issue: Two instances of an application on two different systems should share a small database. The main problem is that both systems can only exchange data through a network-fo...

stackoverflow.com

 

+ Recent posts