Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. > Shiro.ini
  2. > [main] jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm
  3. > jdbcRealm.authenticationQuery = SELECT password FROM users where
  4. > username = ? jdbcRealm.userRolesQuery = select role from users where
  5. > id=(select id FROM users where username =?)
  6.  
  7.  
  8.  
  9. ds = com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  10. ds.serverName = localhost
  11. ds.user = root
  12. ds.password = root
  13. ds.databaseName = marketdb
  14. jdbcRealm.dataSource= $ds
  15.  
  16.  
  17.  
  18. > authc.loginUrl = /giris.html
  19. > #authc.successUrl = /kasiyer/index.html user.loginUrl = /giris.html
  20.  
  21.  
  22.  
  23. [urls]
  24. /giris.html = authc
  25. /logout = logout
  26. /admin/** = user, roles[admin]
  27. /kasiyer/** = user, roles[kasiyer]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement