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

     

  • 相关阅读:
    [转]利用docker进行java开发小demo
    markdown简介及语法
    Thinking in Java 之classpath理解
    docker官方windows安装
    Thinking in Java笔记之类及对象的初始化
    开发工具之play framework
    图解phpstorm常用快捷键
    Git相关
    Yii 1.1 cookie删不掉
    ajax跨域,这应该是最全的解决方案了
  • 原文地址:https://www.cnblogs.com/javajiuyangzhenjing/p/10210621.html
Copyright © 2011-2022 走看看