you may need to activate it (no profiles are currently active).
前言
小咸儿最近在进行多租户的操作,因为项目中使用了多租户,所以不能再配置文件中直接连接到数据库了,而是通过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属性:
最后,完美解决。