代码之家  ›  专栏  ›  技术社区  ›  Pyntamil Selvi

Shiro与Orientdb连接时出现问题

  •  0
  • Pyntamil Selvi  · 技术社区  · 6 年前

    从Apache Shiro jdbcarlm连接到orientDb时出现以下异常

    org.apache.shiro.config.ConfigurationException: Property 'serverName' does not exist for object of type com.orientechnologies.orient.jdbc.OrientJdbcDriver.
    at org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:413)
    

    这是我的shiri.ini文件

    jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
    jdbcRealm.permissionsLookupEnabled = false
    jdbcRealm.authenticationQuery = SELECT Password FROM User WHERE Name = ?
    ds = com.orientechnologies.orient.jdbc.OrientJdbcDriver
    ds.serverName = localhost
    ds.user = root
    ds.password = root
    ds.databaseName = configurationData
    jdbcRealm.dataSource = $ds
    securityManager.realms = $jdbcRealm
    securityManager.sessionManager.globalSessionTimeout = 6000
    
    0 回复  |  直到 6 年前