解析类路径时出错:/db/changelog/db.changelog-master.yaml

问题描述

我想用liquibase创建MysqL person表。但是我遇到一个错误,所以

原因:liquibase.exception.ChangeLogParseException:解析类路径时出错:/db/changelog/db.changelog-master.yaml

db.changelog-master.yaml

databaseChangeLog:
  -includeAll:
    path: db/changelog/v-0.1/

20201015-01-create-person-table.yaml

databaseChangeLog:
  - changeSet:
      id: 20201015-01
      author: nursultankhalilov
      changes:
        - createTable:
            tableName: persons
            columns:
              - column:
                name: person_id
                type: bigint
                autoIncrement: true
                constraints:
                  primaryKey: true
                  primaryKeyName: person_pk
                  nullable: false
              - column:
                name: person_name
                type: VARCHAR(255)
                constraints:
                  nullable: false
              - column:
                  name: person_surname
                  type: VARCHAR(255)
                  constraints:
                    nullable: false

application.yaml

spring:
  datasource:
    driver-class-name: com.MysqL.cj.jdbc.Driver
    url: jdbc:MysqL://localhost:3306/person
    username: user
    password:
  jpa:
    hibernate:
      ddl-auto: update
    generate-ddl: true
    show-sql: true

  liquibase:
    changeLog: classpath:db/changelog/db.changelog-master.yaml

我在做什么错?请帮忙

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)