zoukankan      html  css  js  c++  java
  • org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping

    org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping  

    原因:yml文件格式错误,此文件要求严格要求格式

    如节点没有对齐,将Mybatis节点与Spring节点对齐,下面是SpringBoot2.0+Mybatis+Mysql的yml配置文件

    server:
      port: 8080
    spring:
      datasource:
               name: daducha
               type: com.alibaba.druid.pool.DruidDataSource
               druid:
                    url: jdbc:mysql://127.0.0.1:3306/daducha
                    username: root
                    password: root
                    maxActive: 20
                    initialSize: 1
                    maxWait: 60000
                    minIdle: 1
                    timeBetweenEvictionRunsMillis: 60000
                    minEvictableIdleTimeMillis: 300000
                    testWhileIdle: true
                    testOnBorrow: false
                    testOnReturn: false
                    poolPreparedStatements: true
                    maxOpenPreparedStatements: 20
                    driver-class-name: com.mysql.jdbc.Driver
    mybatis:
      mapper-locations: classpath:mapping/*.xml
      type-aliases-package: com.wuji.entity.po

     

  • 相关阅读:
    win10磁盘碎片整理
    Windows10系统一键结束所有运行程序
    win10关闭后台应用程序进程的方法
    第一章 进化的分子基础
    xshell分隔符及全路径提示
    GEOquery
    Gviz
    用R包来下载sra数据
    Analyzing Microarray Data with R
    IRanges package
  • 原文地址:https://www.cnblogs.com/javajiuyangzhenjing/p/10210587.html
Copyright © 2011-2022 走看看