Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > Shiro.ini
- > [main] jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm
- > jdbcRealm.authenticationQuery = SELECT password FROM users where
- > username = ? jdbcRealm.userRolesQuery = select role from users where
- > id=(select id FROM users where username =?)
- ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
- ds.serverName = localhost
- ds.user = root
- ds.password = root
- ds.databaseName = marketdb
- jdbcRealm.dataSource= $ds
- > authc.loginUrl = /giris.html
- > #authc.successUrl = /kasiyer/index.html user.loginUrl = /giris.html
- [urls]
- /giris.html = authc
- /logout = logout
- /admin/** = user, roles[admin]
- /kasiyer/** = user, roles[kasiyer]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement