新版不支持多数据源,不同类型的数据库?

提问 4 1254
liukidd
liukidd VIP3 2019-03-08
版本:renren-fast 开发环境:
新版不支持多数据源,不同类型的数据库?
回帖
  • 支持,还提供了配置示例
    0 回复
  • liukidd
    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 之前在老版本可以。
    0 回复
  • liukidd
    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
    0 回复
  • @liukidd 你这个不是最新版吧,下载renren-fast3.0
    0 回复