What is the default username and password for h2 when there's nothing explicit in JDBC?

后端 未结 7 971
你的背包
你的背包 2021-02-06 21:47

From a program, I created a H2 database without specifying any user or password in the JDBC URL.

Now I\'m trying to access that database with the Script tool. The doc sa

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 22:32

    In your application.properties file please add

           spring.datasource.username=username
           spring.datasource.password=password
    

    hope it helps

提交回复
热议问题