博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
you may need to activate it (no profiles are currently active).
阅读量:2490 次
发布时间:2019-05-11

本文共 378 字,大约阅读时间需要 1 分钟。

这里写自定义目录标题

前言

  小咸儿最近在进行多租户的操作,因为项目中使用了多租户,所以不能再配置文件中直接连接到数据库了,而是通过mycat中间件去连接租户所对应的数据库。

错误

  再修改完配置文件后,启动项目时,报了个错误:

  If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

  意思是什么呢?

  意思:如果要从特定配置文件加载数据库设置,则可能需要激活它(当前没有激活的配置文件)。

解决办法

  知道什么意思之后,该怎么解决就好办了,解决方法就是在配置文件中的Profiles中添加active属性:

在这里插入图片描述
  最后,完美解决。

转载地址:http://vcerb.baihongyu.com/

你可能感兴趣的文章
【2020-3-21】Mac安装Homebrew慢,解决办法
查看>>
influxdb 命令行输出时间为 yyyy-MM-dd HH:mm:ss(年月日时分秒)的方法
查看>>
已知子网掩码,确定ip地址范围
查看>>
判断时间或者数字是否连续
查看>>
docker-daemon.json各配置详解
查看>>
Docker(一)使用阿里云容器镜像服务
查看>>
Docker(三) 构建镜像
查看>>
Spring 全家桶注解一览
查看>>
JDK1.8-Stream API使用
查看>>
cant connect to local MySQL server through socket /tmp/mysql.sock (2)
查看>>
vue中的状态管理 vuex store
查看>>
Maven之阿里云镜像仓库配置
查看>>
Maven:mirror和repository 区别
查看>>
微服务网关 Spring Cloud Gateway
查看>>
SpringCloud Feign的使用方式(一)
查看>>
SpringCloud Feign的使用方式(二)
查看>>
关于Vue-cli+ElementUI项目 打包时排除Vue和ElementUI
查看>>
Vue 路由懒加载根据根路由合并chunk块
查看>>
vue中 不更新视图 四种解决方法
查看>>
MySQL 查看执行计划
查看>>