zoukankan      html  css  js  c++  java
  • Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured

     Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

    还是出现在yml文件节点。

    具体是druid:这个节点,要有层次结构。详见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

     

  • 相关阅读:
    CentOS之文件搜索命令locate
    CentOs之链接命令
    CentOs之常见目录作用介绍
    centOs之目录处理命令
    Query注解及方法限制
    Repository接口
    OkHttp和Volley对比
    Base64加密与MD5的区别?
    支付宝集成
    Android 中 非对称(RSA)加密和对称(AES)加密
  • 原文地址:https://www.cnblogs.com/javajiuyangzhenjing/p/10210621.html
Copyright © 2011-2022 走看看