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.
- ex
realm.setresourcepath("/web-inf/auth.properties");
- 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
Post a Comment