将Shiro与Orientdb连接时出现问题

时间:2019-01-23 13:10:30

标签: orientdb shiro

从Apache Shiro JDBCRealm连接到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 个答案:

没有答案