JNPF Ultimate Source Code, JNPF3.4.7 Rapid Development Framework Source Code Deployment Document Getting Started Instructions and Source Code Sharing

Platform Core Functions

  • Unified security authentication center:  a unified authentication service center based on Spring Security, , and JWT, and the login is based on the standard login process of spring security. Spring OAuth2Client authorization supports four authorization modes of oauth2.0: authorization code mode, simplified mode, password mode, and client mode. The authorization process is consistent with the standard oauth2 process. The web terminal uses the simplified mode (implicit) to log in to the system, and the mobile terminal can use the password mode (password) to log in to the system. At the same time, it also supports Spring Sociallogin methods based on third-party accounts, such as WeChat/QQ, Alipay, Weibo, etc., and provides an expansion mode to support more third-party channels.

  • RBAC-based authority system: The functions under this functional module are used to maintain the organizational structure information and employee information of the enterprise. It mainly includes functions such as organizational information, employee definition, organizational structure, corporate address book, and address book synchronization. Users can maintain the company's organizational structure information (organization/department/role/position) and user information under this functional module, and can also import organizational structure information into the system with one click through third-party applications (DingTalk/Enterprise WeChat). You can also use the import function of organizational structure and employee information to import data into the system.

private byte[] _data;

[GlobalSetup]
public void Setup()
{
    _data = new byte[64];
    RandomNumberGenerator.Fill(_data);
}

[Benchmark]
public string ToHexString() => Convert.ToHexString(_data);

  • Low-code generator: Based on Mybatis-plus-generatora custom code generator, by configuring the annotations of the database fields, the codes of the WEB front-end (vue), mobile terminal (vue), back-end (controller, entity, mapperxml, service) and other codes can be generated online , greatly reducing the difficulty of development, and reducing development tasks by more than 70%;

  • Zero-code development: equipped with a large number of reusable controls, through the operation interface elements, drag and drop controls to automatically generate visual applications;

  • Workflow: Workflow service is a set of workflow solutions self-developed by JNPF, including two parts: process form and process engine. The process form is visually designed and highly configurable. It adopts structured form template design and centralized analysis mode design. . Adapt to the needs of various scenarios of China's national conditions, configuration WYSIWYG, low code, high configuration;

  • Portal design: Enterprises quickly configure and deploy personalized portals by simply dragging and dropping components onto the canvas;

  • Large-screen design: freely layout pages, drag and drop controls to the page, set content and data binding for different controls, and realize large-screen visual page development with what you see is what you get;

  • Report design: No need to develop any code, users only need to configure a series of parameters on the interface to realize the configuration of various types of reports, online rendering of report content, report export, printing and other functions.

private string _str;

[GlobalSetup]
public async Task Setup()
{
    using var hc = new HttpClient();
    _str = await hc.GetStringAsync("https://www.gutenberg.org/cache/epub/3200/pg3200.txt"); // The Entire Project Gutenberg Works of Mark Twain
}

[Benchmark]
public string Yell() => _str.Replace(".", "!");

[Benchmark]
public string ConcatLines() => _str.Replace("\n", "");

[Benchmark]
public string NormalizeEndings() => _str.Replace("\r\n", "\n");

operating system support

  • Desktop Operating System Development Environment

    • Windows 7+
    • MacOS
    • Ubuntu Desktop (desktop version)
    • Deepin (Deepin)
    • Tongxin UOS Desktop (Professional) Edition
    • Winning the Kylin Desktop Edition
    • Zhongke Fangde desktop version
private string _text;

[Params("HTML", "URL", "JSON")]
public string Encoder { get; set; }

private TextEncoder _encoder;

[GlobalSetup]
public async Task Setup()
{
    using (var hc = new HttpClient())
        _text = await hc.GetStringAsync("https://www.gutenberg.org/cache/epub/3200/pg3200.txt");

    _encoder = Encoder switch
    {
        "HTML" => HtmlEncoder.Default,
        "URL" => UrlEncoder.Default,
        _ => JavaScriptEncoder.Default,
    };
}

[Benchmark]
public string Encode() => _encoder.Encode(_text);
  • Server operating system test, production environment

    • CentOS 7+
    • RedHat 7+
    • Ubuntu Server
    • Unicom UOS server version
    • Winning the Bid for Kylin Server Edition
    • Zhongke Fangde server version
private int Major = 6, Minor = 0, Build = 100, Revision = 21380;

[Benchmark(Baseline = true)]
public string Old()
{
    object[] array = new object[4];
    array[0] = Major;
    array[1] = Minor;
    array[2] = Build;
    array[3] = Revision;
    return string.Format("{0}.{1}.{2}.{3}", array);
}

[Benchmark]
public string New()
{
    var h = new DefaultInterpolatedStringHandler(3, 4);
    h.AppendFormatted(Major);
    h.AppendLiteral(".");
    h.AppendFormatted(Minor);
    h.AppendLiteral(".");
    h.AppendFormatted(Build);
    h.AppendLiteral(".");
    h.AppendFormatted(Revision);
    return h.ToStringAndClear();
}

Guess you like

Origin blog.csdn.net/ohpppp/article/details/130852143