.NETFramework:Math

本文详细介绍了C#中Math类的使用方法,包括各种数学运算如取绝对值、求最大最小值、四舍五入等操作,以及三角函数、指数和对数函数等高级数学功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ylbtech-.NETFramework:Math

 

1. 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089返回顶部
1、
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll
#endregion

using System.Runtime;
using System.Runtime.ConstrainedExecution;
using System.Security;

namespace System
{
    //
    // 摘要:
    //     为三角函数、对数函数和其他通用数学函数提供常数和静态方法。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。
    public static class Math
    {
        //
        // 摘要:
        //     表示圆的周长与其直径的比值,由常数 π 指定。
        public const double PI = 3.1415926535897931;
        //
        // 摘要:
        //     表示自然对数的底,它由常数 e 指定。
        public const double E = 2.7182818284590451;

        //
        // 摘要:
        //     返回 System.Decimal 数字的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于或等于 System.Decimal.MinValue 但小于或等于 System.Decimal.MaxValue 的数字。
        //
        // 返回结果:
        //     十进制数 x,满足 0 ≤ x ≤System.Decimal.MaxValue。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static decimal Abs(decimal value);
        //
        // 摘要:
        //     返回双精度浮点数字的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于或等于 System.Double.MinValue 但小于或等于 System.Double.MaxValue 的数字。
        //
        // 返回结果:
        //     双精度浮点数 x,满足 0 ≤ x ≤System.Double.MaxValue。
        [SecuritySafeCritical]
        public static double Abs(double value);
        //
        // 摘要:
        //     返回单精度浮点数字的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于或等于 System.Single.MinValue 但小于或等于 System.Single.MaxValue 的数字。
        //
        // 返回结果:
        //     单精度浮点数 x,满足 0 ≤ x ≤System.Single.MaxValue。
        [SecuritySafeCritical]
        public static float Abs(float value);
        //
        // 摘要:
        //     返回 32 位有符号整数的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于 System.Int32.MinValue 但小于或等于 System.Int32.MaxValue 的数字。
        //
        // 返回结果:
        //     32 位有符号的整数 x,满足 0 ≤ x ≤System.Int32.MaxValue。
        //
        // 异常:
        //   T:System.OverflowException:
        //     value 等于 System.Int32.MinValue。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Abs(int value);
        //
        // 摘要:
        //     返回 16 位有符号整数的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于 System.Int16.MinValue 但小于或等于 System.Int16.MaxValue 的数字。
        //
        // 返回结果:
        //     16 位有符号的整数 x,满足 0 ≤ x ≤System.Int16.MaxValue。
        //
        // 异常:
        //   T:System.OverflowException:
        //     value 等于 System.Int16.MinValue。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static short Abs(short value);
        //
        // 摘要:
        //     返回 8 位有符号整数的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于 System.SByte.MinValue 但小于或等于 System.SByte.MaxValue 的数字。
        //
        // 返回结果:
        //     8 位有符号的整数 x,满足 0 ≤ x ≤System.SByte.MaxValue。
        //
        // 异常:
        //   T:System.OverflowException:
        //     value 等于 System.SByte.MinValue。
        [CLSCompliant(false)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static sbyte Abs(sbyte value);
        //
        // 摘要:
        //     返回 64 位有符号整数的绝对值。
        //
        // 参数:
        //   value:
        //     一个大于 System.Int64.MinValue 但小于或等于 System.Int64.MaxValue 的数字。
        //
        // 返回结果:
        //     64 位有符号的整数 x,满足 0 ≤ x ≤System.Int64.MaxValue。
        //
        // 异常:
        //   T:System.OverflowException:
        //     value 等于 System.Int64.MinValue。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static long Abs(long value);
        //
        // 摘要:
        //     返回余弦值为指定数字的角度。
        //
        // 参数:
        //   d:
        //     一个表示余弦值的数字,其中 d 必须大于或等于 -1 但小于或等于 1。
        //
        // 返回结果:
        //     角度 θ, ,以弧度为单位,以便 0 ≤θ≤π- 或 - 如果 d < -1 或 d > 1 或 d 等于 System.Double.NaN,则为 System.Double.NaN。
        [SecuritySafeCritical]
        public static double Acos(double d);
        //
        // 摘要:
        //     返回正弦值为指定数字的角度。
        //
        // 参数:
        //   d:
        //     一个表示正弦值的数字,其中 d 必须大于或等于 -1 但小于或等于 1。
        //
        // 返回结果:
        //     角度 θ, ,以弧度为单位,满足π/2 ≤θ≤π/2 - 或 - 如果 d < -1 或 d > 1 或 d 等于 System.Double.NaN,则为
        //     System.Double.NaN。
        [SecuritySafeCritical]
        public static double Asin(double d);
        //
        // 摘要:
        //     返回正切值为指定数字的角度。
        //
        // 参数:
        //   d:
        //     表示正切值的数字。
        //
        // 返回结果:
        //     角度 θ, ,以弧度为单位,满足π/2 ≤θ≤π/2。- 或 - 如果 d 等于 System.Double.NaN,则为 System.Double.NaN;如果
        //     d 等于 System.Double.NegativeInfinity,则为舍入为双精度值 (-1.5707963267949) 的 -π/2;或者如果
        //     d 等于 System.Double.PositiveInfinity,则为舍入为双精度值 (1.5707963267949) 的 π/2。
        [SecuritySafeCritical]
        public static double Atan(double d);
        //
        // 摘要:
        //     返回正切值为两个指定数字的商的角度。
        //
        // 参数:
        //   y:
        //     点的 y 坐标。
        //
        //   x:
        //     点的 x 坐标。
        //
        // 返回结果:
        //     角度 θ, ,以弧度为单位,满足π≤θ≤π, ,和 tan (θ) = y / x, ,其中 (x, ,y) 是笛卡尔平面中的点。 请看下面:对于 (x,
        //     ,y) 在象限 1,0 < θ < π/2。对于 (x, ,y) 在象限 2, π/2 < θ≤π。对于 (x, ,y) 第 3 象限中-π < θ <-π/2。对于
        //     (x, ,y) 在第 4 象限-π/2 < θ < 0。如果点在象限的边界上,则返回值如下:如果 y 为 0 并且 x 不为负值,则 θ = 0。如果 y
        //     为 0 并且 x 为负值,则 θ = π。如果 y 为正值并且 x 为 0,则 θ = π/2。如果 y 为负值并且 x 为 0,则 θ = -π/2。如果
        //     y 为 0 并且 x 为 0,则 θ = 0。如果 x 或 y 为 System.Double.NaN,或者如果 x 和 y 为 System.Double.PositiveInfinity
        //     或 System.Double.NegativeInfinity,则该方法返回 System.Double.NaN。
        [SecuritySafeCritical]
        public static double Atan2(double y, double x);
        //
        // 摘要:
        //     生成两个 32 位数字的完整乘积。
        //
        // 参数:
        //   a:
        //     要相乘的第一个数。
        //
        //   b:
        //     要相乘的第二个数。
        //
        // 返回结果:
        //     包含指定数字乘积的数。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static long BigMul(int a, int b);
        //
        // 摘要:
        //     返回大于或等于指定的十进制数的最小整数值。
        //
        // 参数:
        //   d:
        //     十进制数。
        //
        // 返回结果:
        //     大于或等于 d 的最小整数值。 请注意,此方法返回 System.Decimal,而不是整数类型。
        public static decimal Ceiling(decimal d);
        //
        // 摘要:
        //     返回大于或等于指定的双精度浮点数的最小整数值。
        //
        // 参数:
        //   a:
        //     一个双精度浮点数。
        //
        // 返回结果:
        //     大于或等于 a 的最小整数值。 如果 a 等于 System.Double.NaN、System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,则返回该值。
        //     请注意,此方法返回 System.Double,而不是整数类型。
        [SecuritySafeCritical]
        public static double Ceiling(double a);
        //
        // 摘要:
        //     返回指定角度的余弦值。
        //
        // 参数:
        //   d:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     d 的余弦值。 如果 d 等于 System.Double.NaN、System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,此方法将返回
        //     System.Double.NaN。
        [SecuritySafeCritical]
        public static double Cos(double d);
        //
        // 摘要:
        //     返回指定角度的双曲余弦值。
        //
        // 参数:
        //   value:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     value 的双曲余弦值。 如果 value 等于 System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,则返回
        //     System.Double.PositiveInfinity。 如果 value 等于 System.Double.NaN,则返回 System.Double.NaN。
        [SecuritySafeCritical]
        public static double Cosh(double value);
        //
        // 摘要:
        //     计算两个 32 位有符号整数的商,并通过输出参数返回余数。
        //
        // 参数:
        //   a:
        //     被除数。
        //
        //   b:
        //     除数。
        //
        //   result:
        //     余数。
        //
        // 返回结果:
        //     指定数字的商。
        //
        // 异常:
        //   T:System.DivideByZeroException:
        //     b 为零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int DivRem(int a, int b, out int result);
        //
        // 摘要:
        //     计算两个 64 位有符号整数的商,并通过输出参数返回余数。
        //
        // 参数:
        //   a:
        //     被除数。
        //
        //   b:
        //     除数。
        //
        //   result:
        //     余数。
        //
        // 返回结果:
        //     指定数字的商。
        //
        // 异常:
        //   T:System.DivideByZeroException:
        //     b 为零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static long DivRem(long a, long b, out long result);
        //
        // 摘要:
        //     返回 e 的指定次幂。
        //
        // 参数:
        //   d:
        //     指定幂的数字。
        //
        // 返回结果:
        //     数字 e 的 d 次幂。 如果 d 等于 System.Double.NaN 或 System.Double.PositiveInfinity,则返回该值。
        //     如果 d 等于 System.Double.NegativeInfinity,则返回 0。
        [SecuritySafeCritical]
        public static double Exp(double d);
        //
        // 摘要:
        //     返回小于或等于指定小数的最大整数。
        //
        // 参数:
        //   d:
        //     十进制数。
        //
        // 返回结果:
        //     小于或等于 d 的最大整数。 请注意,该方法将返回 System.Math 类型的整数值。
        public static decimal Floor(decimal d);
        //
        // 摘要:
        //     返回小于或等于指定双精度浮点数的最大整数。
        //
        // 参数:
        //   d:
        //     一个双精度浮点数。
        //
        // 返回结果:
        //     小于或等于 d 的最大整数。 如果 d 等于 System.Double.NaN、System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,则返回该值。
        [SecuritySafeCritical]
        public static double Floor(double d);
        //
        // 摘要:
        //     返回一指定数字被另一指定数字相除的余数。
        //
        // 参数:
        //   x:
        //     被除数。
        //
        //   y:
        //     除数。
        //
        // 返回结果:
        //     一个数等于 x - (y Q),其中 Q 是 x / y 的商的最接近整数(如果 x / y 在两个整数中间,则返回偶数)。如果 x - (y Q) 为零,则在
        //     x 为正时返回值 +0,而在 x 为负时返回 -0。如果 y = 0,则返回 System.Double.NaN。
        public static double IEEERemainder(double x, double y);
        //
        // 摘要:
        //     返回指定数字在使用指定底时的对数。
        //
        // 参数:
        //   a:
        //     要查找其对数的数字。
        //
        //   newBase:
        //     对数的底。
        //
        // 返回结果:
        //     下表中的值之一。 (+Infinity 表示 System.Double.PositiveInfinity,-Infinity 表示 System.Double.NegativeInfinity,NaN
        //     表示 System.Double.NaN。)anewBase返回值a> 0(0 <newBase< 1) -or-(newBase> 1)日志newBase(a)a<
        //     0(任意值)NaN(任意值)newBase< 0NaNa != 1newBase = 0NaNa != 1newBase = + InfinityNaNa
        //     = NaN(任意值)NaN(任意值)newBase = NaNNaN(任意值)newBase = 1NaNa = 00 <newBase< 1 +Infinitya
        //     = 0newBase> 1-Infinitya = + Infinity0 <newBase< 1-Infinitya = + InfinitynewBase>
        //     1+Infinitya = 1newBase = 00a = 1newBase = + Infinity0
        public static double Log(double a, double newBase);
        //
        // 摘要:
        //     返回指定数字的自然对数(底为 e)。
        //
        // 参数:
        //   d:
        //     要查找其对数的数字。
        //
        // 返回结果:
        //     下表中的值之一。d 参数返回值 正 自然对数 d; 即 ln d, ,或日志 ed零 System.Double.NegativeInfinity负数 System.Double.NaN等于
        //     System.Double.NaNSystem.Double.NaN等于 System.Double.PositiveInfinitySystem.Double.PositiveInfinity
        [SecuritySafeCritical]
        public static double Log(double d);
        //
        // 摘要:
        //     返回指定数字以 10 为底的对数。
        //
        // 参数:
        //   d:
        //     要查找其对数的数字。
        //
        // 返回结果:
        //     下表中的值之一。d 参数 返回值 正 基 10 日志 d; 也就是说,记录 10d。零 System.Double.NegativeInfinity负数
        //     System.Double.NaN等于 System.Double.NaNSystem.Double.NaN等于 System.Double.PositiveInfinitySystem.Double.PositiveInfinity
        [SecuritySafeCritical]
        public static double Log10(double d);
        //
        // 摘要:
        //     返回两个 16 位有符号的整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 16 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 16 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static short Max(short val1, short val2);
        //
        // 摘要:
        //     返回两个 16 位无符号整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 16 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 16 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static ushort Max(ushort val1, ushort val2);
        //
        // 摘要:
        //     返回两个 32 位有符号的整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 32 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 32 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Max(int val1, int val2);
        //
        // 摘要:
        //     返回两个 64 位有符号的整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 64 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 64 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static long Max(long val1, long val2);
        //
        // 摘要:
        //     返回两个 64 位无符号整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 64 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 64 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static ulong Max(ulong val1, ulong val2);
        //
        // 摘要:
        //     返回两个单精度浮点数字中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个单精度浮点数中的第一个。
        //
        //   val2:
        //     要比较的两个单精度浮点数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。 如果 val1 或 val2 或者 val1 和 val2 都等于 System.Single.NaN,则返回
        //     System.Single.NaN。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static float Max(float val1, float val2);
        //
        // 摘要:
        //     返回两个双精度浮点数字中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个双精度浮点数中的第一个。
        //
        //   val2:
        //     要比较的两个双精度浮点数中的第二个
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。 如果 val1 或 val2 或者 val1 和 val2 都等于 System.Double.NaN,则返回
        //     System.Double.NaN。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static double Max(double val1, double val2);
        //
        // 摘要:
        //     返回两个十进制数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个十进制数字中的第一个。
        //
        //   val2:
        //     要比较的两个十进制数字中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static decimal Max(decimal val1, decimal val2);
        //
        // 摘要:
        //     返回两个 32 位无符号整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 32 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 32 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static uint Max(uint val1, uint val2);
        //
        // 摘要:
        //     返回两个 8 位有符号的整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 8 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 8 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static sbyte Max(sbyte val1, sbyte val2);
        //
        // 摘要:
        //     返回两个 8 位无符号整数中较大的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 8 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 8 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较大的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static byte Max(byte val1, byte val2);
        //
        // 摘要:
        //     返回两个 32 位有符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 32 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 32 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Min(int val1, int val2);
        //
        // 摘要:
        //     返回两个十进制数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个十进制数字中的第一个。
        //
        //   val2:
        //     要比较的两个十进制数字中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static decimal Min(decimal val1, decimal val2);
        //
        // 摘要:
        //     返回两个双精度浮点数字中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个双精度浮点数中的第一个。
        //
        //   val2:
        //     要比较的两个双精度浮点数中的第二个
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。 如果 val1 或 val2 或者 val1 和 val2 都等于 System.Double.NaN,则返回
        //     System.Double.NaN。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static double Min(double val1, double val2);
        //
        // 摘要:
        //     返回两个单精度浮点数字中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个单精度浮点数中的第一个。
        //
        //   val2:
        //     要比较的两个单精度浮点数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。 如果 val1 或 val2 或者 val1 和 val2 都等于 System.Single.NaN,则返回
        //     System.Single.NaN。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static float Min(float val1, float val2);
        //
        // 摘要:
        //     返回两个 64 位无符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 64 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 64 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static ulong Min(ulong val1, ulong val2);
        //
        // 摘要:
        //     返回两个 64 位有符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 64 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 64 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static long Min(long val1, long val2);
        //
        // 摘要:
        //     返回两个 32 位无符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 32 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 32 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static uint Min(uint val1, uint val2);
        //
        // 摘要:
        //     返回两个 16 位无符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 16 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 16 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static ushort Min(ushort val1, ushort val2);
        //
        // 摘要:
        //     返回两个 16 位有符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 16 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 16 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static short Min(short val1, short val2);
        //
        // 摘要:
        //     返回两个 8 位有符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 8 位有符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 8 位有符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [CLSCompliant(false)]
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static sbyte Min(sbyte val1, sbyte val2);
        //
        // 摘要:
        //     返回两个 8 位无符号整数中较小的一个。
        //
        // 参数:
        //   val1:
        //     要比较的两个 8 位无符号整数中的第一个。
        //
        //   val2:
        //     要比较的两个 8 位无符号整数中的第二个。
        //
        // 返回结果:
        //     val1 或 val2 参数中较小的一个。
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static byte Min(byte val1, byte val2);
        //
        // 摘要:
        //     返回指定数字的指定次幂。
        //
        // 参数:
        //   x:
        //     要乘幂的双精度浮点数。
        //
        //   y:
        //     指定幂的双精度浮点数。
        //
        // 返回结果:
        //     数字 x 的 y 次幂。
        [SecuritySafeCritical]
        public static double Pow(double x, double y);
        //
        // 摘要:
        //     将小数值按指定的小数位数舍入。
        //
        // 参数:
        //   d:
        //     要舍入的小数。
        //
        //   decimals:
        //     返回值中的小数位数。
        //
        // 返回结果:
        //     最接近 d 的 decimals 位小数的数字。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     decimals 小于 0 或大于 28。
        //
        //   T:System.OverflowException:
        //     结果不在范围之内 System.Decimal。
        public static decimal Round(decimal d, int decimals);
        //
        // 摘要:
        //     将小数值舍入到最接近的整数。 一个参数,指定当一个值正好处于两个数中间时如何舍入这个值。
        //
        // 参数:
        //   d:
        //     要舍入的小数。
        //
        //   mode:
        //     在两个数字之间时如何舍入 d 的规范。
        //
        // 返回结果:
        //     最接近 d 的整数。 如果 d 是两个数字的中值,这两个数字一个为偶数,另一个为奇数,则 mode 确定返回两个数字中的哪一个。
        //
        // 异常:
        //   T:System.ArgumentException:
        //     mode 不是有效值的 System.MidpointRounding。
        //
        //   T:System.OverflowException:
        //     结果不在范围之内 System.Decimal。
        public static decimal Round(decimal d, MidpointRounding mode);
        //
        // 摘要:
        //     将小数值舍入到最接近的整数值。
        //
        // 参数:
        //   d:
        //     要舍入的小数。
        //
        // 返回结果:
        //     最接近参数 d 的整数。 如果 d 的小数部分正好处于两个整数中间,其中一个整数为偶数,另一个整数为奇数,则返回偶数。 请注意,此方法返回 System.Decimal,而不是整数类型。
        //
        // 异常:
        //   T:System.OverflowException:
        //     结果不在范围之内 System.Decimal。
        public static decimal Round(decimal d);
        //
        // 摘要:
        //     将双精度浮点值按指定的小数位数舍入。 一个参数,指定当一个值正好处于两个数中间时如何舍入这个值。
        //
        // 参数:
        //   value:
        //     要舍入的双精度浮点数。
        //
        //   digits:
        //     返回值中的小数数字。
        //
        //   mode:
        //     在两个数字之间时如何舍入 value 的规范。
        //
        // 返回结果:
        //     最接近 value 的 digits 位小数的数字。 如果 value 比 digits 少部分数字,value 原样返回。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     digits 为小于 0 或大于 15。
        //
        //   T:System.ArgumentException:
        //     mode 不是有效值的 System.MidpointRounding。
        public static double Round(double value, int digits, MidpointRounding mode);
        //
        // 摘要:
        //     将双精度浮点值舍入为最接近的整数。 一个参数,指定当一个值正好处于两个数中间时如何舍入这个值。
        //
        // 参数:
        //   value:
        //     要舍入的双精度浮点数。
        //
        //   mode:
        //     在两个数字之间时如何舍入 value 的规范。
        //
        // 返回结果:
        //     最接近 value 的整数。 如果 value 是两个整数的中值,这两个整数一个为偶数,另一个为奇数,则 mode 确定返回两个整数中的哪一个。
        //
        // 异常:
        //   T:System.ArgumentException:
        //     mode 不是有效值的 System.MidpointRounding。
        public static double Round(double value, MidpointRounding mode);
        //
        // 摘要:
        //     将双精度浮点值按指定的小数位数舍入。
        //
        // 参数:
        //   value:
        //     要舍入的双精度浮点数。
        //
        //   digits:
        //     返回值中的小数数字。
        //
        // 返回结果:
        //     最接近 value 的 digits 位小数的数字。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     digits 为小于 0 或大于 15。
        public static double Round(double value, int digits);
        //
        // 摘要:
        //     将双精度浮点值舍入为最接近的整数值。
        //
        // 参数:
        //   a:
        //     要舍入的双精度浮点数。
        //
        // 返回结果:
        //     最接近 a 的整数。 如果 a 的小数部分正好处于两个整数中间,其中一个整数为偶数,另一个整数为奇数,则返回偶数。 请注意,此方法返回 System.Double,而不是整数类型。
        [SecuritySafeCritical]
        public static double Round(double a);
        //
        // 摘要:
        //     将小数值按指定的小数位数舍入。 一个参数,指定当一个值正好处于两个数中间时如何舍入这个值。
        //
        // 参数:
        //   d:
        //     要舍入的小数。
        //
        //   decimals:
        //     返回值中的小数位数。
        //
        //   mode:
        //     在两个数字之间时如何舍入 d 的规范。
        //
        // 返回结果:
        //     最接近 d 的 decimals 位小数的数字。 如果 d 比 decimals 少部分数字,d 原样返回。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     decimals 小于 0 或大于 28。
        //
        //   T:System.ArgumentException:
        //     mode 不是有效值的 System.MidpointRounding。
        //
        //   T:System.OverflowException:
        //     结果不在范围之内 System.Decimal。
        public static decimal Round(decimal d, int decimals, MidpointRounding mode);
        //
        // 摘要:
        //     返回一个整数,该整数指示 8 位带符号整数的符号。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        [CLSCompliant(false)]
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(sbyte value);
        //
        // 摘要:
        //     返回表示十进制数符号的整数。
        //
        // 参数:
        //   value:
        //     已签名的十进制数。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(decimal value);
        //
        // 摘要:
        //     返回一个整数,该整数表示双精度浮点数字的符号。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        //
        // 异常:
        //   T:System.ArithmeticException:
        //     value 等于 System.Double.NaN。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(double value);
        //
        // 摘要:
        //     返回一个整数,该整数表示单精度浮点数字的符号。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        //
        // 异常:
        //   T:System.ArithmeticException:
        //     value 等于 System.Single.NaN。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(float value);
        //
        // 摘要:
        //     返回一个整数,该整数指示 64 位带符号整数的符号。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(long value);
        //
        // 摘要:
        //     返回表示 16 位带符号整数的整数。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(short value);
        //
        // 摘要:
        //     返回表示 32 位带符号整数的整数。
        //
        // 参数:
        //   value:
        //     有符号的数字。
        //
        // 返回结果:
        //     一个指示 value 的符号的数字,如下表所示。返回值 含义 -1 value 小于零。0 value 等于零。1 value 大于零。
        [TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
        public static int Sign(int value);
        //
        // 摘要:
        //     返回指定角度的正弦值。
        //
        // 参数:
        //   a:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     a 的正弦值。 如果 a 等于 System.Double.NaN、System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,此方法将返回
        //     System.Double.NaN。
        [SecuritySafeCritical]
        public static double Sin(double a);
        //
        // 摘要:
        //     返回指定角度的双曲正弦值。
        //
        // 参数:
        //   value:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     value 的双曲正弦值。 如果 value 等于 System.Double.NegativeInfinity、System.Double.PositiveInfinity
        //     或 System.Double.NaN,则此方法返回等于 value 的 System.Double。
        [SecuritySafeCritical]
        public static double Sinh(double value);
        //
        // 摘要:
        //     返回指定数字的平方根。
        //
        // 参数:
        //   d:
        //     将查找其平方根的数字。
        //
        // 返回结果:
        //     下表中的值之一。d 参数 返回值 零或正数 正平方根 d。负数 System.Double.NaN等于 System.Double.NaNSystem.Double.NaN等于
        //     System.Double.PositiveInfinitySystem.Double.PositiveInfinity
        [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
        [SecuritySafeCritical]
        public static double Sqrt(double d);
        //
        // 摘要:
        //     返回指定角度的正切值。
        //
        // 参数:
        //   a:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     a 的正切值。 如果 a 等于 System.Double.NaN、System.Double.NegativeInfinity 或 System.Double.PositiveInfinity,此方法将返回
        //     System.Double.NaN。
        [SecuritySafeCritical]
        public static double Tan(double a);
        //
        // 摘要:
        //     返回指定角度的双曲正切值。
        //
        // 参数:
        //   value:
        //     以弧度计量的角度。
        //
        // 返回结果:
        //     value 的双曲正切值。 如果 value 等于 System.Double.NegativeInfinity,则此方法返回 -1。 如果值等于 System.Double.PositiveInfinity,则此方法返回
        //     1。 如果 value 等于 System.Double.NaN,则此方法返回 System.Double.NaN。
        [SecuritySafeCritical]
        public static double Tanh(double value);
        //
        // 摘要:
        //     计算指定双精度浮点数的整数部分。
        //
        // 参数:
        //   d:
        //     要截断的数字。
        //
        // 返回结果:
        //     d 的整数部分(即舍弃小数位后剩余的数或下表所列出的值之一)。d返回值System.Double.NaNSystem.Double.NaNSystem.Double.NegativeInfinitySystem.Double.NegativeInfinitySystem.Double.PositiveInfinitySystem.Double.PositiveInfinity
        public static double Truncate(double d);
        //
        // 摘要:
        //     计算一个数字的整数部分。
        //
        // 参数:
        //   d:
        //     要截断的数字。
        //
        // 返回结果:
        //     d 的整数部分(即舍弃小数位后剩余的数)。
        public static decimal Truncate(decimal d);
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

转载于:https://www.cnblogs.com/storebook/p/9045655.html

D:\develop\JDK\jdk1.8.0_271\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\soft\IDEA\IntelliJ IDEA 2022.1.2\lib\idea_rt.jar=62316:D:\soft\IDEA\IntelliJ IDEA 2022.1.2\bin" -Dfile.encoding=UTF-8 -classpath D:\develop\JDK\jdk1.8.0_271\jre\lib\charsets.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\deploy.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\access-bridge-64.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\cldrdata.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\dnsns.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\jaccess.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\jfxrt.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\localedata.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\nashorn.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\sunec.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\sunjce_provider.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\sunmscapi.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\sunpkcs11.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\ext\zipfs.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\javaws.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\jce.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\jfr.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\jfxswt.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\jsse.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\management-agent.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\plugin.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\resources.jar;D:\develop\JDK\jdk1.8.0_271\jre\lib\rt.jar;D:\code\SpringCloud-hsp\code\e-commerce-center\e_commerce_eureka-server-9001\target\classes;D:\maven-repository\org\springframework\cloud\spring-cloud-netflix-eureka-server\2.2.1.RELEASE\spring-cloud-netflix-eureka-server-2.2.1.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-freemarker\2.2.2.RELEASE\spring-boot-starter-freemarker-2.2.2.RELEASE.jar;D:\maven-repository\org\freemarker\freemarker\2.3.29\freemarker-2.3.29.jar;D:\maven-repository\org\springframework\spring-context-support\5.2.2.RELEASE\spring-context-support-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\cloud\spring-cloud-commons\2.2.1.RELEASE\spring-cloud-commons-2.2.1.RELEASE.jar;D:\maven-repository\org\springframework\security\spring-security-crypto\5.2.1.RELEASE\spring-security-crypto-5.2.1.RELEASE.jar;D:\maven-repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.1.RELEASE\spring-cloud-netflix-hystrix-2.2.1.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-autoconfigure\2.2.2.RELEASE\spring-boot-autoconfigure-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-aop\2.2.2.RELEASE\spring-boot-starter-aop-2.2.2.RELEASE.jar;D:\maven-repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;D:\maven-repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.2.1.RELEASE\spring-cloud-netflix-eureka-client-2.2.1.RELEASE.jar;D:\maven-repository\com\netflix\eureka\eureka-client\1.9.13\eureka-client-1.9.13.jar;D:\maven-repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\maven-repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\maven-repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\maven-repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\maven-repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\maven-repository\joda-time\joda-time\2.10.5\joda-time-2.10.5.jar;D:\maven-repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\maven-repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\maven-repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\maven-repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;D:\maven-repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\maven-repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\maven-repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\maven-repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\maven-repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\maven-repository\org\apache\httpcomponents\httpclient\4.5.10\httpclient-4.5.10.jar;D:\maven-repository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;D:\maven-repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\maven-repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\maven-repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\maven-repository\com\fasterxml\jackson\core\jackson-annotations\2.10.1\jackson-annotations-2.10.1.jar;D:\maven-repository\com\fasterxml\jackson\core\jackson-core\2.10.1\jackson-core-2.10.1.jar;D:\maven-repository\com\fasterxml\jackson\core\jackson-databind\2.10.1\jackson-databind-2.10.1.jar;D:\maven-repository\com\sun\jersey\jersey-servlet\1.19.1\jersey-servlet-1.19.1.jar;D:\maven-repository\com\sun\jersey\jersey-server\1.19.1\jersey-server-1.19.1.jar;D:\maven-repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\maven-repository\com\netflix\eureka\eureka-core\1.9.13\eureka-core-1.9.13.jar;D:\maven-repository\com\fasterxml\woodstox\woodstox-core\5.2.1\woodstox-core-5.2.1.jar;D:\maven-repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\maven-repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\maven-repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\maven-repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\maven-repository\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar;D:\maven-repository\com\google\guava\guava\16.0\guava-16.0.jar;D:\maven-repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\maven-repository\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.10.1\jackson-dataformat-xml-2.10.1.jar;D:\maven-repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.10.1\jackson-module-jaxb-annotations-2.10.1.jar;D:\maven-repository\org\codehaus\woodstox\stax2-api\4.2\stax2-api-4.2.jar;D:\maven-repository\com\thoughtworks\xstream\xstream\1.4.11.1\xstream-1.4.11.1.jar;D:\maven-repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\maven-repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-web\2.2.2.RELEASE\spring-boot-starter-web-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter\2.2.2.RELEASE\spring-boot-starter-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot\2.2.2.RELEASE\spring-boot-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-logging\2.2.2.RELEASE\spring-boot-starter-logging-2.2.2.RELEASE.jar;D:\maven-repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\maven-repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\maven-repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\maven-repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\maven-repository\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;D:\maven-repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\maven-repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-json\2.2.2.RELEASE\spring-boot-starter-json-2.2.2.RELEASE.jar;D:\maven-repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.1\jackson-datatype-jdk8-2.10.1.jar;D:\maven-repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.1\jackson-datatype-jsr310-2.10.1.jar;D:\maven-repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.1\jackson-module-parameter-names-2.10.1.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-tomcat\2.2.2.RELEASE\spring-boot-starter-tomcat-2.2.2.RELEASE.jar;D:\maven-repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.29\tomcat-embed-core-9.0.29.jar;D:\maven-repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.29\tomcat-embed-el-9.0.29.jar;D:\maven-repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.29\tomcat-embed-websocket-9.0.29.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-validation\2.2.2.RELEASE\spring-boot-starter-validation-2.2.2.RELEASE.jar;D:\maven-repository\jakarta\validation\jakarta.validation-api\2.0.1\jakarta.validation-api-2.0.1.jar;D:\maven-repository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;D:\maven-repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\maven-repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\maven-repository\org\springframework\spring-web\5.2.2.RELEASE\spring-web-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-beans\5.2.2.RELEASE\spring-beans-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-webmvc\5.2.2.RELEASE\spring-webmvc-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-aop\5.2.2.RELEASE\spring-aop-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-context\5.2.2.RELEASE\spring-context-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-expression\5.2.2.RELEASE\spring-expression-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-actuator\2.2.2.RELEASE\spring-boot-starter-actuator-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.2.2.RELEASE\spring-boot-actuator-autoconfigure-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-actuator\2.2.2.RELEASE\spring-boot-actuator-2.2.2.RELEASE.jar;D:\maven-repository\io\micrometer\micrometer-core\1.3.1\micrometer-core-1.3.1.jar;D:\maven-repository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;D:\maven-repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\maven-repository\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar;D:\maven-repository\org\springframework\boot\spring-boot-starter-test\2.2.2.RELEASE\spring-boot-starter-test-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-test\2.2.2.RELEASE\spring-boot-test-2.2.2.RELEASE.jar;D:\maven-repository\org\springframework\boot\spring-boot-test-autoconfigure\2.2.2.RELEASE\spring-boot-test-autoconfigure-2.2.2.RELEASE.jar;D:\maven-repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;D:\maven-repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;D:\maven-repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;D:\maven-repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\maven-repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.2\jakarta.xml.bind-api-2.3.2.jar;D:\maven-repository\jakarta\activation\jakarta.activation-api\1.2.1\jakarta.activation-api-1.2.1.jar;D:\maven-repository\org\junit\jupiter\junit-jupiter\5.5.2\junit-jupiter-5.5.2.jar;D:\maven-repository\org\junit\jupiter\junit-jupiter-api\5.5.2\junit-jupiter-api-5.5.2.jar;D:\maven-repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\maven-repository\org\junit\platform\junit-platform-commons\1.5.2\junit-platform-commons-1.5.2.jar;D:\maven-repository\org\junit\jupiter\junit-jupiter-params\5.5.2\junit-jupiter-params-5.5.2.jar;D:\maven-repository\org\junit\jupiter\junit-jupiter-engine\5.5.2\junit-jupiter-engine-5.5.2.jar;D:\maven-repository\org\junit\vintage\junit-vintage-engine\5.5.2\junit-vintage-engine-5.5.2.jar;D:\maven-repository\org\apiguardian\apiguardian-api\1.1.0\apiguardian-api-1.1.0.jar;D:\maven-repository\org\junit\platform\junit-platform-engine\1.5.2\junit-platform-engine-1.5.2.jar;D:\maven-repository\junit\junit\4.12\junit-4.12.jar;D:\maven-repository\org\mockito\mockito-junit-jupiter\3.1.0\mockito-junit-jupiter-3.1.0.jar;D:\maven-repository\org\assertj\assertj-core\3.13.2\assertj-core-3.13.2.jar;D:\maven-repository\org\hamcrest\hamcrest\2.1\hamcrest-2.1.jar;D:\maven-repository\org\mockito\mockito-core\3.1.0\mockito-core-3.1.0.jar;D:\maven-repository\net\bytebuddy\byte-buddy\1.10.4\byte-buddy-1.10.4.jar;D:\maven-repository\net\bytebuddy\byte-buddy-agent\1.10.4\byte-buddy-agent-1.10.4.jar;D:\maven-repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;D:\maven-repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;D:\maven-repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\maven-repository\org\springframework\spring-core\5.2.2.RELEASE\spring-core-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-jcl\5.2.2.RELEASE\spring-jcl-5.2.2.RELEASE.jar;D:\maven-repository\org\springframework\spring-test\5.2.2.RELEASE\spring-test-5.2.2.RELEASE.jar;D:\maven-repository\org\xmlunit\xmlunit-core\2.6.3\xmlunit-core-2.6.3.jar;D:\code\SpringCloud-hsp\code\e-commerce-center\e_commerce_center-common-api\target\classes com.example.springCloud.EurekaApplication . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.2.RELEASE) 2025-05-30 20:51:56.378 INFO 19288 --- [ main] c.example.springCloud.EurekaApplication : Starting EurekaApplication on DESKTOP-EP4100D with PID 19288 (D:\code\SpringCloud-hsp\code\e-commerce-center\e_commerce_eureka-server-9001\target\classes started by 86131 in D:\code\SpringCloud-hsp\code\e-commerce-center) 2025-05-30 20:51:56.380 INFO 19288 --- [ main] c.example.springCloud.EurekaApplication : No active profile set, falling back to default profiles: default 2025-05-30 20:51:56.718 WARN 19288 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.example.springCloud.EurekaApplication]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy 2025-05-30 20:51:56.726 INFO 19288 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2025-05-30 20:51:56.734 ERROR 19288 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.example.springCloud.EurekaApplication]; nested exception is java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:597) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.access$900(ConfigurationClassParser.java:109) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:805) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at java.util.ArrayList.forEach(ArrayList.java:1259) ~[na:1.8.0_271] at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:801) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:771) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:325) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:242) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at com.example.springCloud.EurekaApplication.main(EurekaApplication.java:17) [classes/:na] Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724) ~[na:1.8.0_271] at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531) ~[na:1.8.0_271] at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355) ~[na:1.8.0_271] at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286) ~[na:1.8.0_271] at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120) ~[na:1.8.0_271] at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72) ~[na:1.8.0_271] at java.lang.Class.createAnnotationData(Class.java:3521) ~[na:1.8.0_271] at java.lang.Class.annotationData(Class.java:3510) ~[na:1.8.0_271] at java.lang.Class.getDeclaredAnnotations(Class.java:3477) ~[na:1.8.0_271] at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:461) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.addMetaAnnotationsToQueue(AnnotationTypeMappings.java:85) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.addAllMappings(AnnotationTypeMappings.java:79) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:68) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:46) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings$Cache.createMappings(AnnotationTypeMappings.java:253) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:324) ~[na:1.8.0_271] at org.springframework.core.annotation.AnnotationTypeMappings$Cache.get(AnnotationTypeMappings.java:249) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:206) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:188) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:175) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.TypeMappedAnnotation.of(TypeMappedAnnotation.java:636) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.annotation.MergedAnnotation.of(MergedAnnotation.java:596) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnd(MergedAnnotationReadingVisitor.java:96) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.asm.ClassReader.readElementValues(ClassReader.java:2775) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.asm.ClassReader.accept(ClassReader.java:572) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.asm.ClassReader.accept(ClassReader.java:400) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:686) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getMemberClasses(ConfigurationClassParser.java:977) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:347) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:266) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:587) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE] ... 19 common frames omitted Process finished with exit code 1
最新发布
05-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值