初步可用后台
This commit is contained in:
15
Core/JXCMS.Core/Utils/ConfigHelper.cs
Normal file
15
Core/JXCMS.Core/Utils/ConfigHelper.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace JXCMS.Core.Utils
|
||||
{
|
||||
public class ConfigHelper
|
||||
{
|
||||
public static IConfiguration Configs { get; set; }
|
||||
|
||||
public static string GetValue(string key)
|
||||
{
|
||||
var res = Configs.GetSection(key).Value;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user