org.springframework.jdbc.BadSqlGrammarException: ### Error querying database. Cause: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "USER" not found;

# DataSource Config
spring:
   datasource:
      driver-class-name: org.h2.Driver
      schema: classpath:db/schema-h2.sql
      data: classpath:db/data-h2.sql
      url: jdbc:h2:mem:test;
      username: root
      password: test
  # Logger Config
#连接必配
logging:
  level:
       com.wsl: debug

注意

datasource:后面有空格
posted on 2022-06-27 23:33  java不白吃  阅读(1061)  评论(0)    收藏  举报