167 lines
7.2 KiB
XML
167 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
For more information on how to configure your ASP.NET application, please visit
|
||
https://go.microsoft.com/fwlink/?LinkId=301879
|
||
-->
|
||
<configuration>
|
||
<configSections>
|
||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||
</configSections>
|
||
|
||
<connectionStrings>
|
||
|
||
<add name="WMSConn" connectionString="Data Source=127.0.0.1; Initial Catalog=yuntong; User ID=sa;Password=1; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun2" providerName="System.Data.SqlClient" />
|
||
<add name="YunTongConn" connectionString="Data Source=127.0.0.1; Initial Catalog=yuntong; User ID=sa;Password=1; Connect Timeout=120; MultipleActiveResultSets=True;App=JiKeYun1" providerName="System.Data.SqlClient" />
|
||
|
||
|
||
</connectionStrings>
|
||
<appSettings>
|
||
<!--解决swagger出错问题-->
|
||
<add key="aspnet:UseHostHeaderForRequestUrl" value="true" />
|
||
|
||
<!--当前环境,1:生产环境 0:开发环境-->
|
||
<add key="Env" value="0" />
|
||
|
||
<add key="RedisAddress" value="" />
|
||
<!--缓存前缀-->
|
||
<add key="CachePrefix" value="" />
|
||
<!--jwtkey-->
|
||
<add key="JwtKey" value="t9Hu5zhiFWunJR1+XDrUM6Jp2aAvTjOa/XoxOrZ7bbI=" />
|
||
<!--是否输出Sql命令0:不输出 1:输出-->
|
||
<add key="OutputSql" value="1" />
|
||
<!--是否输出请求日志-->
|
||
<add key="OutputRequstLog" value="1" />
|
||
<!--本地上传的存放路径-->
|
||
<add key="UploadFolder" value="D:\" />
|
||
<!--取消owin启动-->
|
||
<add key="owin:AutomaticAppStartup" value="false" />
|
||
<!--钉钉通知机器人-->
|
||
<add key="DingDingApiUrl" value="" />
|
||
|
||
<!--区域层增加的前缀路径-->
|
||
<add key="AreaUrlPrePath" value="" />
|
||
|
||
</appSettings>
|
||
<!--
|
||
有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
|
||
|
||
可在 <httpRuntime> 标记上设置以下特性。
|
||
<system.Web>
|
||
<httpRuntime targetFramework="4.5" />
|
||
</system.Web>
|
||
-->
|
||
<system.web>
|
||
<authentication mode="None" />
|
||
<compilation debug="true" targetFramework="4.5" />
|
||
<httpRuntime targetFramework="4.5" />
|
||
</system.web>
|
||
|
||
<log4net>
|
||
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
|
||
|
||
<!--日志路径-->
|
||
|
||
<param name="File" value="App_Log\" />
|
||
|
||
<!--是否是向文件中追加日志-->
|
||
|
||
<param name="AppendToFile" value="true" />
|
||
|
||
<!--log保留天数-->
|
||
|
||
<param name="MaxSizeRollBackups" value="30" />
|
||
|
||
<!--日志文件名是否是固定不变的-->
|
||
|
||
<param name="StaticLogFileName" value="false" />
|
||
|
||
<!--日志文件名格式为:2008-08-31.log-->
|
||
|
||
<param name="DatePattern" value="yyyy-MM-dd".log"" />
|
||
|
||
<!--日志根据日期滚动-->
|
||
|
||
<param name="RollingStyle" value="Date" />
|
||
<layout type="log4net.Layout.PatternLayout">
|
||
<param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n %logger" />
|
||
</layout>
|
||
</appender>
|
||
<logger name="MyCode.Project.Logger">
|
||
<level value="ERROR" />
|
||
<level value="INFO" />
|
||
<appender-ref ref="RollingLogFileAppender" />
|
||
</logger>
|
||
<root>
|
||
|
||
<!--(高) OFF > FATAL > ERROR > WARN > INFO > DEBUG > ALL (低)-->
|
||
|
||
<level value="ERROR" />
|
||
<appender-ref ref="RollingLogFileAppender" />
|
||
</root>
|
||
</log4net>
|
||
<runtime>
|
||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
|
||
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
|
||
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Common.Logging.Core" publicKeyToken="af08829b84f0328e" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="Common.Logging" publicKeyToken="af08829b84f0328e" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-2.0.8.0" newVersion="2.0.8.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
||
</dependentAssembly>
|
||
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||
</dependentAssembly>
|
||
<dependentAssembly>
|
||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
|
||
</dependentAssembly>
|
||
</assemblyBinding>
|
||
</runtime>
|
||
<system.codedom>
|
||
<compilers>
|
||
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
|
||
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
|
||
</compilers>
|
||
</system.codedom>
|
||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup></configuration>
|