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:
how can switch persistent, let's say, mysql database? have change in configuration?
can spring-boot set database me specific port , stored in file system?
does intellij provide datasource browser created database?
i sure must covered somewhere in endless jungle of spring-boot documentation.
you can change application properties datasource according link gabor bakos provided.
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.
yes, intellij has datasource browser major databases (maybe have download database driver).
Comments
Post a Comment