Unlock instant, AI-driven research and patent intelligence for your innovation.

Starting method based on Spring and CXF applications, server and storage medium

An application startup and server technology, applied in the field of Java service development, can solve problems such as program running complexity, slow application startup speed, and affecting system startup performance, so as to improve user experience and fast startup speed for the first time

Pending Publication Date: 2022-02-11
INSPUR COMMON SOFTWARE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The IoC container is the core part of Spring. During the startup process of the application, all beans in the system will be scanned and assembled and loaded according to a certain relationship, which in itself will waste a lot of time.
The Spring annotation can be regarded as the "accomplice" of time-consuming startup. Although it can greatly simplify the development process, it also brings additional complexity to the program operation.
For example, @Transantional and @EnableCaching annotations require the program to scan and identify during startup, and then generate proxy classes for the annotation classes or process them through AOP interception, which further affects system startup performance
[0003] The Spring system has a built-in lazy loading attribute. However, due to project requirements, it is often necessary to replace part of the Spring framework with other frameworks compatible with the Spring system. For example, the cxf framework is used to replace the spring mvc framework, but the cxf framework does not support the lazy loading function. As a result, the startup speed of applications developed based on Spring and cxf frameworks is slow

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
  • Starting method based on Spring and CXF applications, server and storage medium
  • Starting method based on Spring and CXF applications, server and storage medium
  • Starting method based on Spring and CXF applications, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0020] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0021] figure 1 It is a working flow diagram of the startup method based on Spring and CXF applications of the present invention. like figure 1 Shown, the workflow of the startup method based on Spring and CXF application of the present invention ...

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 starting method based on Spring and CXF applications, which comprises the following steps of: a specific annotation for REST service developed under a CXF framework is defined; in response to application starting and scanning of all Javabean in the system, the Javabean with specific annotations are not subjected to loading and assembling operation; and in response to successful starting of the application and receiving of a service request, a corresponding Javabean is loaded based on a preset container generation strategy to assemble and generate a container, so that the container responds to the service request. The method has the beneficial effects that the specific annotation is defined for the REST service developed under the CXF framework; in response to application starting and scanning of all Javabean in the system, the Javabean with specific annotations are not subjected to loading and assembling operation; in response to successful starting of the application and receiving of the service request, the corresponding Javabean is loaded based on the preset container generation strategy to assemble and generate the container, so that the container responds to the service request, and lazy loading of the Apcache CXF REST service layer is realized.

Description

technical field [0001] The invention relates to the technical field of Java service development, in particular to a startup method based on Spring and CXF applications, a server and a readable storage medium. Background technique [0002] For the Spring system, all the heavy work is done at startup, so that the application can have good performance at runtime. The IoC container is the core part of Spring. During the startup process of the application, all beans in the system will be scanned and assembled and loaded according to a certain relationship, which in itself will waste a lot of time. The Spring annotation can be regarded as the "accomplice" of time-consuming startup. Although it can greatly simplify the development process, it also brings additional complexity to the program operation. Annotations such as @Transantional and @EnableCaching require the program to scan and identify during the startup process, and then generate proxy classes for the annotation classes ...

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): G06F9/455G06F16/955
CPCG06F9/45558G06F16/955G06F2009/45575
Inventor 王延东
Owner INSPUR COMMON SOFTWARE