idea使用嵌入式h2数据库时
报错信息如下
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password 【28000-199】
解决
在控制台执行
create user if not exists 用户名 password ‘密码’;
alter user 用户名 admin true;