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

     

  • 相关阅读:
    Python __repr__()方法:显示属性
    Python SQLAlchemy入门教程(基本用法)
    彻底搞懂Token、Session和Cookie。
    MTV和MVC的区别
    Flask配置Cors跨域
    跨域资源共享 CORS 详解
    浏览器同源政策及其规避方法
    敏捷开发
    Nginx搭建正向代理服务器支持https
    为什么使用k8s和容器作为devops的底层平台
  • 原文地址:https://www.cnblogs.com/javajiuyangzhenjing/p/10210621.html
Copyright © 2011-2022 走看看