Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

226 linhas
10 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <!--<section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis" />-->
  5. <!--<section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration" />-->
  6. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  7. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  8. <!--<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />-->
  9. </configSections>
  10. <!--redis-->
  11. <!--<redisconfig WriteServerList="127.0.0.1:6379" ReadServerList="127.0.0.1:6379" MaxWritePoolSize="60" MaxReadPoolSize="60" AutoStart="true" LocalCacheTime="180" RecordeLog="false"></redisconfig>-->
  12. <!--IOC-->
  13. <!--<unity>
  14. <typeAliases>
  15. <typeAlias alias="IDatabase" type="Learun.DataBase.IDatabase,Learun.DataBase" />
  16. <typeAlias alias="SqlServer" type="Learun.DataBase.SqlServer.Database,Learun.DataBase.SqlServer" />
  17. <typeAlias alias="MySql" type="Learun.DataBase.MySqlEx.Database,Learun.DataBase.MySqlEx" />
  18. <typeAlias alias="Oracle" type="Learun.DataBase.Oracle.Database,Learun.DataBase.Oracle" />
  19. </typeAliases>
  20. <containers>
  21. <container name="IOCcontainer">
  22. <type type="IDatabase" mapTo="SqlServer" name="SqlServer"></type>
  23. <type type="IDatabase" mapTo="MySql" name="MySql"></type>
  24. <type type="IDatabase" mapTo="Oracle" name="Oracle"></type>
  25. </container>
  26. </containers>
  27. </unity>-->
  28. <!--数据库-->
  29. <!--<connectionStrings>
  30. <add name="BaseDb" connectionString="Server=192.168.2.126;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />
  31. </connectionStrings>-->
  32. <!--系统设置-->
  33. <appSettings>
  34. <!-- ================== 1:开发系统相关配置 ================== -->
  35. <!-- 启用系统日志-->
  36. <add key="IsLog" value="true" />
  37. <!-- ================== 2:这里主要是微信配置项内容部分 ================== -->
  38. <!--企业号CorpId -->
  39. <add key="CorpId" value="wxa2c39f6194f4" />
  40. <!--企业号凭证密钥 -->
  41. <add key="CorpSecret" value="eDo9pEOXWqSgWtQ-_1NF_NTmGDTlZ3UFFdF3To-" />
  42. <!-- ================== 4:系统软件参数配置 ================== -->
  43. <!-- 联系我们 -->
  44. <add key="Contact" value="www.learun.cn" />
  45. <!-- 公司名称 -->
  46. <add key="CustomerCompanyName" value="" />
  47. <!-- 系统名称 -->
  48. <add key="SystemName" value="Learun智慧校园敏捷开发框架" />
  49. <!-- 软件名称 -->
  50. <add key="SoftName" value="Learun.敏捷开发框架" />
  51. <!-- 软件版本 -->
  52. <add key="Version" value="6.1.6.0" />
  53. <!-- 软件注册码,备用 -->
  54. <add key="RegisterKey" value="NO:2013101712345678" />
  55. <!-- ================== 5:外部邮件参数 ================== -->
  56. <!-- 系统错误自动发送邮件 -->
  57. <add key="ErrorToMail" value="false" />
  58. <!-- 接收错误信息的邮箱 -->
  59. <add key="RereceiveErrorMail" value="receivebug@Learun.cn" />
  60. <!-- 发出邮箱的名称 -->
  61. <add key="MailName" value="Learun智慧校园邮件中心" />
  62. <!-- 发出邮箱的地址 -->
  63. <add key="MailUserName" value="sendbug@Learun.cn" />
  64. <!-- 发出邮箱的密码 -->
  65. <add key="MailPassword" value="Learun123" />
  66. <!-- 发出邮箱设置邮箱主机 -->
  67. <add key="MailHost" value="smtp.ym.163.com" />
  68. <!-- ================== 6:即时通信参数 ================== -->
  69. <add key="IMUrl" value="http://localhost:8012" />
  70. </appSettings>
  71. <!--日志-->
  72. <log4net>
  73. <!--根配置-->
  74. <root>
  75. <!--日志级别:可选值: ERROR > WARN > INFO > DEBUG -->
  76. <level value="ERROR" />
  77. <level value="WARN" />
  78. <level value="INFO" />
  79. <level value="DEBUG" />
  80. <appender-ref ref="ErrorLog" />
  81. <appender-ref ref="WarnLog" />
  82. <appender-ref ref="InfoLog" />
  83. <appender-ref ref="DebugLog" />
  84. </root>
  85. <!-- 错误 Error.log-->
  86. <appender name="ErrorLog" type="log4net.Appender.RollingFileAppender">
  87. <!--目录路径,可以是相对路径或绝对路径-->
  88. <param name="File" value="C:\Learun_log" />
  89. <!--文件名,按日期生成文件夹-->
  90. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Error.log&quot;" />
  91. <!--追加到文件-->
  92. <appendToFile value="true" />
  93. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  94. <rollingStyle value="Composite" />
  95. <!--写到一个文件-->
  96. <staticLogFileName value="false" />
  97. <!--单个文件大小。单位:KB|MB|GB-->
  98. <maximumFileSize value="200MB" />
  99. <!--最多保留的文件数,设为"-1"则不限-->
  100. <maxSizeRollBackups value="-1" />
  101. <!--日志格式-->
  102. <layout type="log4net.Layout.PatternLayout">
  103. <conversionPattern value="%message" />
  104. </layout>
  105. <filter type="log4net.Filter.LevelRangeFilter">
  106. <param name="LevelMin" value="ERROR" />
  107. <param name="LevelMax" value="ERROR" />
  108. </filter>
  109. </appender>
  110. <!-- 警告 Warn.log-->
  111. <appender name="WarnLog" type="log4net.Appender.RollingFileAppender">
  112. <!--目录路径,可以是相对路径或绝对路径-->
  113. <param name="File" value="C:\Learun_log" />
  114. <!--文件名,按日期生成文件夹-->
  115. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Warn.log&quot;" />
  116. <!--追加到文件-->
  117. <appendToFile value="true" />
  118. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  119. <rollingStyle value="Composite" />
  120. <!--写到一个文件-->
  121. <staticLogFileName value="false" />
  122. <!--单个文件大小。单位:KB|MB|GB-->
  123. <maximumFileSize value="200MB" />
  124. <!--最多保留的文件数,设为"-1"则不限-->
  125. <maxSizeRollBackups value="-1" />
  126. <!--日志格式-->
  127. <layout type="log4net.Layout.PatternLayout">
  128. <conversionPattern value="%message" />
  129. </layout>
  130. <filter type="log4net.Filter.LevelRangeFilter">
  131. <param name="LevelMin" value="WARN" />
  132. <param name="LevelMax" value="WARN" />
  133. </filter>
  134. </appender>
  135. <!-- 信息 Info.log-->
  136. <appender name="InfoLog" type="log4net.Appender.RollingFileAppender">
  137. <!--目录路径,可以是相对路径或绝对路径-->
  138. <param name="File" value="C:\Learun_log" />
  139. <!--文件名,按日期生成文件夹-->
  140. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Info.log&quot;" />
  141. <!--追加到文件-->
  142. <appendToFile value="true" />
  143. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  144. <rollingStyle value="Composite" />
  145. <!--写到一个文件-->
  146. <staticLogFileName value="false" />
  147. <!--单个文件大小。单位:KB|MB|GB-->
  148. <maximumFileSize value="200MB" />
  149. <!--最多保留的文件数,设为"-1"则不限-->
  150. <maxSizeRollBackups value="-1" />
  151. <!--日志格式-->
  152. <layout type="log4net.Layout.PatternLayout">
  153. <conversionPattern value="%message" />
  154. </layout>
  155. <filter type="log4net.Filter.LevelRangeFilter">
  156. <param name="LevelMin" value="INFO" />
  157. <param name="LevelMax" value="INFO" />
  158. </filter>
  159. </appender>
  160. <!-- 调试 Debug.log-->
  161. <appender name="DebugLog" type="log4net.Appender.RollingFileAppender">
  162. <!--目录路径,可以是相对路径或绝对路径-->
  163. <param name="File" value="C:\Learun_log" />
  164. <!--文件名,按日期生成文件夹-->
  165. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Debug.log&quot;" />
  166. <!--追加到文件-->
  167. <appendToFile value="true" />
  168. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  169. <rollingStyle value="Composite" />
  170. <!--写到一个文件-->
  171. <staticLogFileName value="false" />
  172. <!--单个文件大小。单位:KB|MB|GB-->
  173. <maximumFileSize value="200MB" />
  174. <!--最多保留的文件数,设为"-1"则不限-->
  175. <maxSizeRollBackups value="-1" />
  176. <!--日志格式-->
  177. <layout type="log4net.Layout.PatternLayout">
  178. <conversionPattern value="%message" />
  179. </layout>
  180. <filter type="log4net.Filter.LevelRangeFilter">
  181. <param name="LevelMin" value="DEBUG" />
  182. <param name="LevelMax" value="DEBUG" />
  183. </filter>
  184. </appender>
  185. </log4net>
  186. <startup>
  187. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
  188. </startup>
  189. <runtime>
  190. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  191. <dependentAssembly>
  192. <assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  193. <bindingRedirect oldVersion="0.0.0.0-2.2.2.0" newVersion="2.2.2.0" />
  194. </dependentAssembly>
  195. <dependentAssembly>
  196. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  197. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  198. </dependentAssembly>
  199. <dependentAssembly>
  200. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  201. <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
  202. </dependentAssembly>
  203. </assemblyBinding>
  204. </runtime>
  205. <entityFramework>
  206. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  207. <parameters>
  208. <parameter value="mssqllocaldb" />
  209. </parameters>
  210. </defaultConnectionFactory>
  211. <providers>
  212. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  213. </providers>
  214. </entityFramework>
  215. </configuration>