File configuration method and device during application deployment and application release method and device

A file configuration and application deployment technology, applied in software deployment, software maintenance/management, version control, etc., can solve the problems of increasing the size of jar package files, long time-consuming uploading to the deployment environment, and large volume, etc., to achieve increased deployment Flexibility, save release deployment time, reduce the effect of data transfer

Pending Publication Date: 2019-08-09
重庆商勤科技有限公司
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These files generally do not change, but these three-party jar files are included every time they are deployed and packaged, which increases the size of the jar package file; the jar package, as the overall running file of a project, is generally large in size and takes a long time to upload to the deployment environment. long

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
  • File configuration method and device during application deployment and application release method and device
  • File configuration method and device during application deployment and application release method and device
  • File configuration method and device during application deployment and application release method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] In order to solve the current deployment of applications in the form of jar packages, the application configuration files, dependency packages, and compiled business codes are packaged together into a jar package. As applications are updated, business codes, configuration files, and third-party dependencies may be required Packages etc. need to be modified. No matter how much or how little the modified content is, as long as the modification is made, it needs to be recompiled, packaged and uploaded before being released. The size of the jar package is increased. Based on this, the present invention provides a file configuration method during application deployment, which mainly separates the three-party dependent files from the jar package and configures them in a shared folder. When the server releases the corresponding application, it can be obtained in the shared folder. Three-party dependent files, when there is a need to modify, developers can directly modify the b...

Embodiment 2

[0057] On the basis of the first embodiment above, because the structure of the jar file has changed, the jar file does not contain the three-party dependent files. App publishing process. To this end, this embodiment provides an application release method, please refer to figure 2 , figure 2 A schematic diagram of the release method flow for the application, the method mainly includes:

[0058] S21. Obtain the jar file of the application to be released, the jar file includes the bytecode.class file and the configuration file of the business code;

[0059] S22. Unpack the jar file, obtain the program entry and the class path ClassPath, and obtain the three-party dependent files of the application to be released through the storage path specified in the class path ClassPath, so as to start the application to be released and realize the application distribution process;

[0060] Further, when the startup command is received, read the entry file MANIFEST.FM in the jar file, ...

Embodiment 3

[0072] On the basis of Embodiment 1, this embodiment provides a device for configuring files during application deployment, which is mainly used to implement the steps of the method for configuring files during application deployment in Embodiment 1 above. Please refer to image 3 , the file configuration device when the application is deployed includes an acquisition module 31, a compilation module 32, a packaging module 33, a compression module 34, a sending module 35, and a definition module 36, wherein:

[0073] The obtaining module 31 is used to obtain the resource file of the application to be configured, and the resource file includes a configuration file, a business code and a tripartite dependency file;

[0074] Compiler module 32 is used for compiling business code, generates bytecode.class file;

[0075] The packaging module 33 generates a jar file by utilizing the jar tool to package the bytecode.class file and the configuration file;

[0076] The compression modu...

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 provides a file configuration method and device during application deployment and an application release method and device, and the method comprises the steps: obtaining a resource fileof a to-be-configured application, the resource file comprising a configuration file, a service code and a three-party dependency file; compiling the service code to generate a bytecode.Class file; packaging the byte code.Class file and the configuration file by utilizing a jar tool to generate a jar file; extracting the three-party dependent file from the resource file, and compressing the three-party dependent file according to a preset compression mode to form a compressed file; storing the compressed file containing the three-party dependent file in a shared folder, sending the jar file toa WEB server to be released, so that the WEB server can obtain the three-party dependent file from the shared folder. According to the method, the three-party dependent file is separated from the jarpackage and placed in the shared folder, the deployment flexibility is improved in the packaging deployment process, and the release deployment time is saved.

Description

technical field [0001] The invention relates to the technical field of Java server development, in particular to a file configuration method and device during application deployment, and an application publishing method and device. Background technique [0002] At present, there are two main methods for J2EE application deployment, and the code is packaged into war (software running file) and jar (software running file) format files respectively. The war package can be placed in a J2EE server container (such as tomcat, jboss, weblogic, etc.), and the container is responsible for decompression, initialization, and startup; the jar package does not depend on the server container and can run independently. It contains project resource configuration files, compiled Code files, project jar dependencies, etc. [0003] In the process of software development using the spring-boot framework, using the default packaging method of the framework will package all the resource files, bus...

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/71G06F8/60
CPCG06F8/71G06F8/60
Inventor 冉茂杰谢春漆浩张坤李双文
Owner 重庆商勤科技有限公司
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