intellij idea - spring boot switching from in-memory database to persistent database -


i have developed web-application using spring-boot , spring-data-jpa , and in-memory database, , have couple questions:

  1. how can switch persistent, let's say, mysql database? have change in configuration?

  2. can spring-boot set database me specific port , stored in file system?

  3. does intellij provide datasource browser created database?

i sure must covered somewhere in endless jungle of spring-boot documentation.

  1. you can change application properties datasource according link gabor bakos provided.

  2. that depends on type of database want use. hsqldb , h2 allow specify file path database file, database instance still running within application process. full rmdbs mysql have install , configure mysql server , provide connection data spring boot application.

  3. yes, intellij has datasource browser major databases (maybe have download database driver).


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -