Secure dynamic authority configuring method based on maven

A technology of dynamic configuration and permissions, applied in the direction of program code conversion, code compilation, etc., to achieve the effect of safe development

Inactive Publication Date: 2018-05-01
G CLOUD TECH
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The technical problem solved by the present invention is to provide a safe and dynamic configuration authority method based on maven; to solve the business system authority management problem, the jar interface authority data that does not need to be compiled can be safely isolated, and the authority data is dynamically loaded when the project starts without manual work Add data, save operation and maintenance personnel deployment time, and make it easier for developers to manage interfaces

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Secure dynamic authority configuring method based on maven
  • Secure dynamic authority configuring method based on maven
  • Secure dynamic authority configuring method based on maven

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Such as figure 1 Shown, the basic process of the present invention is as follows:

[0026] Step 1: Write the maven project pom.xml file, and customize the configuration sub-project compilation package;

[0027] Step 2: Add corresponding labels to the corresponding menu classes and interfaces;

[0028] Step 3: The scanner scans the compiled jar package to obtain the corresponding menu class and interface method;

[0029] Step 4: Load the menu class configuration and interface method configuration into memory in sequence;

[0030] Step 5: Synchronize the permission data to the database;

[0031] Step 6: Start the project and use the scanner to load the permission data.

[0032] The maven described in the present invention provides advanced project management tools; pom.xml is a configuration file built by the maven program; the jar package is the file after the java class is packaged; the menu class is a self-defined tag java class, and the inside is configured Menu ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of Java service-end development technology, and particularly to a secure dynamic authority configuring method based on maven. The method includes the following steps: step 1, writing a pom.xml file of a maven project, and carrying out customized configuring on a sub-project compilation package; step 2, adding corresponding tags for corresponding menu classes andinterfaces; step 3, scanning a compiled jar package by a scanner to acquire corresponding menu classes and interface methods; step 4, loading menu class configurations and interface method configurations into memory in sequence; step 5, synchronizing a database with authority data; and step 6, starting the project, and utilizing the scanner to load the authority data. The method solves the background development system authority module control and the authority security problem after system module splitting, and can be used for interface development.

Description

technical field [0001] The invention relates to the technical field of Java server development, in particular to a maven-based safe dynamic configuration authority method. Background technique [0002] As the business system becomes larger and larger, there are more and more interfaces. On the other hand, the microservice module of the system is also an inevitable trend; it will bring the following problems: [0003] One is that after the interface is developed, programmers have to manually add SQL statements. [0004] The second is that after the split of the microservice module, the permission data has not been split, and there are security issues. [0005] The third is that micro-service modules can be combined at will, and authority data management is a difficult problem. [0006] Fourth, there are a large number of interfaces, and there will be problems of missing permission SQL statements. [0007] In order to save the deployment time of operation and maintenance pe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/41
Inventor 张志江季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products