Spring Boot + IntelliJ + Embedded Database = Headache

前端 未结 5 1754
执笔经年
执笔经年 2020-12-29 05:05

Either I\'m missing some core concept buried deep within some documentation (Spring, Spring Boot, H2, HSQLDB, Derby, IntelliJ) or I\'ve been staring at this for too long.

5条回答
  •  执念已碎
    2020-12-29 06:06

    H2 Automatic Mixed Mode should be fine for you. Use jdbc:h2:~/mydbInHomeDir;AUTO_SERVER=TRUE as your spring.datasource.url. In IntelliJ, create a remote H2 data source and use the exact same JDBC URL. You may have to explicitly press the Synchronize button in the IntelliJ Database window to get the database tables to show up.

提交回复
热议问题