java - How to load files/properties from WEB-INF directory? -


it seems in tapestry app, can't load ini files nor properties file web-inf directory or class path.

i tried several different methods should load file non of them worked.

  1. ex

realm.setresourcepath("/web-inf/auth.properties");

  1. ex

realm.setresourcepath("classpath:wip/pages/auth.properties");

i need load properties/ini file in order use tapestry-security module based on shiro.

thanks !

the root of classpath way go. put file in src/main/resources/auth.properties set resourcepath using realm.setresourcepath("classpath:auth.properties");

check extendedpropertiesrealm , tapestry-security testapp example


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -