-
2019-03-08
支持,还提供了配置示例
-
2019-03-08
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
first: #数据源1
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/pc?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
username: root
password: root
second: #数据源2
driverClassName: net.sourceforge.jtds.jdbc.Driver
url: jdbc:jtds:sqlserver://localhost/test
username: sa
password: 123456
这是我们的配置,driverClassName从上面移下来。启动的时候报找不到driverClassName
之前在老版本可以。
-
2019-03-08
***************************
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 (no profiles are currently active).
Process finished with exit code 1
-
2019-03-08
@liukidd
你这个不是最新版吧,下载renren-fast3.0