H2数据库执行初始化脚本后,H2数据库查询乱码

spring:
  datasource: 
      driver-class-name: org.h2.Driver
      jdbc-url: jdbc:h2:D:/h2Db/log;DB_CLOSE_DELAY=-1;AUTO_RECONNECT=TRUE
      username: root
      password: 123456
      initialization-mode: always
      separator: ;
      #初始化日志库的表结构
      schema: 
        classpath:dbSchemaInit/systemLog.sql
      #初始化日志库的数据
      data:
        classpath:dbDataInit/systemData.sql
      sql-script-encoding: UTF-8  #必须设置

 

posted @ 2021-11-09 16:59  析草的残梦  阅读(685)  评论(0编辑  收藏  举报