JSB 的shell读写ini配置文件件.ini如何添加有继承关系的类库

没有更多推荐了,
不良信息举报
举报内容:
用java读写ini配置文件
举报原因:
原文地址:
原因补充:
最多只允许输入30个字
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!2.3. Yaf的配置项
2.3. Yaf的配置项
表 2.2. Yaf 配置选项
可修改范围
yaf.environ
PHP_INI_ALL
环境名称, 当用INI作为Yaf的配置文件时, 这个指明了Yaf将要在INI配置中读取的节的名字
yaf.library
PHP_INI_ALL
全局类库的目录路径
yaf.cache_config
PHP_INI_SYSTEM
是否缓存配置文件(只针对INI配置文件生效), 打开此选项可在复杂配置的情况下提高性能
yaf.name_suffix
PHP_INI_ALL
在处理Controller, Action, Plugin, Model的时候, 类名中关键信息是否是后缀式,
比如UserModel, 而在前缀模式下则是ModelUser
yaf.name_separator
PHP_INI_ALL
在处理Controller, Action, Plugin, Model的时候, 前缀和名字之间的分隔符, 默认为空,
也就是UserPlugin, 加入设置为"_", 则判断的依据就会变成:"User_Plugin", 这个主要是为了兼容ST已有的命名规范
yaf.forward_limit
PHP_INI_ALL
forward最大嵌套深度
yaf.use_namespace
PHP_INI_SYSTEM
开启的情况下, Yaf将会使用命名空间方式注册自己的类,
比如Yaf_Application将会变成Yaf\Application
yaf.use_spl_autoload
PHP_INI_ALL
开启的情况下, Yaf在加载不成功的情况下, 会继续让PHP的自动加载函数加载, 从性能考虑, 除非特殊情况, 否则保持这个选项关闭
在开启yaf.cache_config的情况下, Yaf会使用INI文件路径作为Key, 这就有一个陷阱, 就是如果在一台服务器上同时运行俩个应用,
那么它们必须不能使用同一个路径名下的INI配置文件, 否则就会出现Application Path混乱的问题. 所以, 尽量不要使用相对路径.使用vs2010创建windows服务项目中怎么添加配置文件?_百度知道
使用vs2010创建windows服务项目中怎么添加配置文件?
我有更好的答案
在你存放窗体的类库下,新建一个项目:选择“应用程序配置文件”,默认名称为app.config.把数据库连接字符串写app.config里就行。
采纳率:57%
为您推荐:
其他类似问题
vs2010的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。没有更多推荐了,
不良信息举报
举报内容:
ExtJs3.0以及以后的版本如何在spket中导入ext.jsb2文件
举报原因:
原文地址:
原因补充:
最多只允许输入30个字
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!&nbsp>&nbsp
&nbsp>&nbsp
&nbsp>&nbsp
[原]Activiti 5.17 流程配置文件以及配置类的继承关系
摘要:流程配置文件分为两类:一类是普通的基本配置,称作plainActivitiStyle&Configuration,使用的文件名为activiti.cfg.xml一类是复杂配置,称作SpringStyleConfiguration,使用的文件名为&activiti-context.xml除了配置内容的不同,本质上两者都是Spring的配置文件。下面是两个文件的样例:activiti.cfg.xml&?xmlversion=&1.0&
流程配置文件分为两类:
一类是普通的基本配置,称作 plain Activiti Style &Configuration,使用的文件名为 activiti.cfg.xml
一类是复杂配置,称作 Spring Style Configuration , 使用的文件名为 &activiti-context.xml
除了配置内容的不同,本质上两者都是Spring的配置文件。
下面是两个文件的样例:
activiti.cfg.xml&?xml version=&1.0& encoding=&UTF-8&?&&beans xmlns=&http://www.springframework.org/schema/beans& xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance& xsi:schemaLocation=&http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd&& &bean id=&processEngineConfiguration& class=&org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration&& &property name=&databaseSchemaUpdate& value=&true&/& &/bean&&/beans&
activiti-context.xml&?xml version=&1.0& encoding=&UTF-8&?&&beans xmlns=&http://www.springframework.org/schema/beans& xmlns:context=&http://www.springframework.org/schema/context& xmlns:tx=&http://www.springframework.org/schema/tx& xmlns:xsi=&http://www.w3.org/2001/XMLSchema-instance& xmlns:security=&http://www.springframework.org/schema/security& xsi:schemaLocation=&http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd&&&!-- Embedded ldap test server --& &security:ldap-server ldif=&classpath:users.ldif& root=&o=activiti& manager-dn=&uid=admin, ou=users& manager-password=&admin&/& &bean id=&dataSource& class=&org.springframework.jdbc.datasource.SimpleDriverDataSource&& &property name=&driverClass& value=&org.h2.Driver& /& &property name=&url& value=&jdbc:h2:mem:DB_CLOSE_DELAY=1000& /& &property name=&username& value=&sa& /& &property name=&password& value=&& /& &/bean& &bean id=&transactionManager& class=&org.springframework.jdbc.datasource.DataSourceTransactionManager&& &property name=&dataSource& ref=&dataSource& /& &/bean& &bean id=&processEngineConfiguration& class=&org.activiti.spring.SpringProcessEngineConfiguration&& &property name=&dataSource& ref=&dataSource& /& &property name=&transactionManager& ref=&transactionManager& /& &property name=&databaseSchemaUpdate& value=&true& /& &property name=&jobExecutorActivate& value=&false& /& &property name=&configurators&& &list& &bean class=&org.activiti.ldap.LDAPConfigurator&& &!-- Server connection params --& &property name=&server& value=&ldap://localhost& /& &property name=&port& value=&33389& /& &property name=&user& value=&uid=admin, ou=users, o=activiti& /& &property name=&password& value=&pass& /& &!-- Query params --& &property name=&baseDn& value=&o=activiti& /& &property name=&queryUserByUserId& value=&(&;(objectClass=inetOrgPerson)(uid={0}))& /& &property name=&queryUserByFullNameLike& value=&(&;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))& /& &property name=&queryGroupsForUser& value=&(&;(objectClass=groupOfUniqueNames)(uniqueMember={0}))& /& &!-- Attribute config --& &property name=&userIdAttribute& value=&uid& /& &property name=&userFirstNameAttribute& value=&cn& /& &property name=&userLastNameAttribute& value=&sn& /& &property name=&groupIdAttribute& value=&uid& /& &property name=&groupNameAttribute& value=&cn& /& &/bean& &/list& &/property& &/bean& &bean id=&processEngine& class=&org.activiti.spring.ProcessEngineFactoryBean&& &property name=&processEngineConfiguration& ref=&processEngineConfiguration& /& &/bean& &bean id=&repositoryService& factory-bean=&processEngine& factory-method=&getRepositoryService& /& &bean id=&runtimeService& factory-bean=&processEngine& factory-method=&getRuntimeService& /& &bean id=&taskService& factory-bean=&processEngine& factory-method=&getTaskService& /& &bean id=&historyService& factory-bean=&processEngine& factory-method=&getHistoryService& /& &bean id=&managementService& factory-bean=&processEngine& factory-method=&getManagementService& /&&/beans&
两个文件最主要的区别就是用 &实现&ProcessEngineConfiguration 接口,继承了&ProcessEngineConfigurationImpl 的不同配置子类,实现不同环境下的配置。
在配置文件中,指明&ProcessEngineConfiguration 由哪个子类实现提供信息。
Activiti 提供的&ProcessEngineConfiguration 子类,列举在下图中配置类边界中。
以上是的内容,更多
的内容,请您使用右上方搜索功能获取相关信息。
若你要投稿、删除文章请联系邮箱:zixun-group@service.aliyun.com,工作人员会在五个工作日内给你回复。
云服务器 ECS
可弹性伸缩、安全稳定、简单易用
&40.8元/月起
预测未发生的攻击
&24元/月起
为您提供0门槛上云实践机会
你可能还喜欢
你可能感兴趣
阿里云教程中心为您免费提供
[原]Activiti 5.17 流程配置文件以及配置类的继承关系相关信息,包括
的信息,所有[原]Activiti 5.17 流程配置文件以及配置类的继承关系相关内容均不代表阿里云的意见!投稿删除文章请联系邮箱:zixun-group@service.aliyun.com,工作人员会在五个工作日内答复
售前咨询热线
支持与服务
资源和社区
关注阿里云
International

我要回帖

更多关于 shiro.ini配置文件 的文章

 

随机推荐