NutzCN Logo
问答 NB中shiro配置ehcache配置文件路径
发布于 2371天前 作者 蛋蛋的忧伤 2004 次浏览 复制 上一个帖子 下一个帖子
标签:

普通j2ee项目中在shiro.ini中可以指定ehcache的配置文件路径,在nb中如何指定?我没看到starter中有相关配置项,默认找的classpath下,我想放在其他目录下应该如何指定

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager.cacheManagerConfigFile=classpath:ehcache.xml

[DEBUG] 09:11:54.094 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:223) - >> Make...'shiroEhcacheCacheManager'<interface org.apache.shiro.cache.CacheManager> [DEBUG] 09:11:54.095 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:65) - Save object 'shiroEhcacheCacheManager' to [app] [DEBUG] 09:11:54.095 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroEnvStarter'<> [WARN ] 09:11:54.118 net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:136) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/dev/apache-maven-3.5.2/resp/net/sf/ehcache/ehcache/2.10.4/ehcache-2.10.4.jar!/ehcache-failsafe.xml [DEBUG] 09:11:54.118 net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:98) - Configuring ehcache from URL: jar:file:/E:/dev/apache-maven-3.5.2/resp/net/sf/ehcache/ehcache/2.10.4/ehcache-2.10.4.jar!/ehcache-failsafe.xml
添加回复
请先登陆
回到顶部