• 原创Spring.Context.Support.ContextRegistry”的类型初始值设定项引发异常,以及Spring.net的配置的大体写法


    第一个可能的原因为:没有引用Common.Logging.dll(我的原因就是这个)

    第二个原因为:<object id="服务的名称" type="命名空间,程序集" ></object>里边的type少了一项,也有可能报错,具体大家可以参考这种写法:

    <object id="CaseDispatchVehicle119Dao" type="BJCreation.CallApp.HibernateDAL.Hibernate.CaseDispatchVehicle119DaoHibernate,BJCreation.CallApp.HibernateDAL">
    <property name="HibernateTemplate" ref="HibernateTemplate"/>  ---说明:配置NHibernate的
    </object>

    <object id="CaseListDao" type="BJCreation.CallApp.OracleDAL.CaseListDaoOracle,BJCreation.CallApp.OracleDAL">

    <!--配置构造函数的-->
    <constructor-arg name="dataSource" type="string" value="ConnectionStringCur"/>
    <constructor-arg type="string" name="viewname" value="v_caselist"/>
    <constructor-arg type="string" name="zhqueryviewname" value="v_zhquerycaselist"/>
    <constructor-arg type="string" name="htjkviewname" value="v_caseinfolist"/>
    </object>

    <!--写到类里边的Dictionary-->

    <object id="DictionaryXZQH" type="BJCreation.VoiceFeedbackModify.Common.GlobalService,BJCreation.VoiceFeedbackModify.Common">
    <property name="XZQH">
    <dictionary key-type="string" value-type="string">
    <entry key="001" value="测试"/>
    </dictionary>
    </property>
    </object>

    <!--单独的Diction<string,string>-->
    <object id="FormSize" type="System.Collections.Generic.Dictionary&lt;string,string&gt;">
    <constructor-arg>
    <dictionary key-type="string" value-type="string">
    <entry key="LocationX" value="0" />
    <entry key="LocationY" value="0" />
    </dictionary>
    </constructor-arg>
    </object>

    <!--单独的List<string>-->

    <object id="JJDGF" type="System.Collections.Generic.List&lt;string>">
    <constructor-arg>
    <list element-type="System.String">
    <value>规范</value>
    <value>单位错误</value>
    </list>
    </constructor-arg>
    </object>

  • 相关阅读:
    函数
    python操作文件
    POJ-2689-Prime Distance(素数区间筛法)
    POJ-2891-Strange Way to Express Integers(线性同余方程组)
    POJ-2142-The Balance
    POJ-1061-青蛙的约会(扩展欧几里得)
    Educational Codeforces Round 75 (Rated for Div. 2) D. Salary Changing
    Educational Codeforces Round 75 (Rated for Div. 2) C. Minimize The Integer
    Educational Codeforces Round 75 (Rated for Div. 2) B. Binary Palindromes
    Educational Codeforces Round 75 (Rated for Div. 2) A. Broken Keyboard
  • 原文地址:https://www.cnblogs.com/smthts/p/2377881.html
Copyright © 2020-2023  润新知