配置多数据吧,项目启动报错

Blade 未结 3 441
corlhetlu
corlhetlu 剑童 2024-06-24 16:41

一、该问题的重现步骤是什么?

启用多数据源,项目启动时报错:

***************************

APPLICATION FAILED TO START

***************************


Description:


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


Reason: Failed to determine suitable jdbc url



Action:


Consider the following:

If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

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

配置如下:

image.png

image.png

image.png

image.png

全是按照demo里面多数据源配置的,启动不起来





二、你期待的结果是什么?实际看到的又是什么?

项目启动


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

4.0.1.RELEASE


四、请提供详细的错误堆栈信息,这很重要。


***************************

APPLICATION FAILED TO START

***************************


Description:


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


Reason: Failed to determine suitable jdbc url



Action:


Consider the following:

If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

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

五、若有更多详细信息,请在下面提供。

3条回答
提交回复