CN106815032B - Personalized definition method and system for insurance application program - Google Patents

Personalized definition method and system for insurance application program Download PDF

Info

Publication number
CN106815032B
CN106815032B CN201710100454.XA CN201710100454A CN106815032B CN 106815032 B CN106815032 B CN 106815032B CN 201710100454 A CN201710100454 A CN 201710100454A CN 106815032 B CN106815032 B CN 106815032B
Authority
CN
China
Prior art keywords
module
application platform
rule application
personalized customization
personalized
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710100454.XA
Other languages
Chinese (zh)
Other versions
CN106815032A (en
Inventor
马晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Meyacom Technology Co ltd
Original Assignee
Shenzhen Meyacom Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Meyacom Technology Co ltd filed Critical Shenzhen Meyacom Technology Co ltd
Priority to CN201710100454.XA priority Critical patent/CN106815032B/en
Publication of CN106815032A publication Critical patent/CN106815032A/en
Application granted granted Critical
Publication of CN106815032B publication Critical patent/CN106815032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a personalized definition method and a system of insurance application programs, wherein the method comprises the steps of establishing a rule application platform based on an independently constructed framework; establishing a pure maven project based on the self-built frame; newly building a template for a jar package in a maven engineering dependence rule application platform; a maven project is newly built according to the newly built template to form a personalized customization module; and developing a page module and a function module according to a rule application platform and the personalized customization module. According to the invention, the personalized definition module relies on the rule application platform, the page customization module is established, class rewriting is realized on the original logical interface, and the @ Primary annotation is added to complete the customization of the function module, so that after the two modules of the project personalized customization and the universal rule application platform are independently extracted, the two modules are combined for each development project, and the development time and the personnel cost are reduced.

Description

Personalized definition method and system for insurance application program
Technical Field
The invention relates to insurance application programs, in particular to a personalized definition method and a personalized definition system of the insurance application programs.
Background
Insurance industry refers to the industry that collects funds through contractual arrangements to compensate for the insured's business of economic interest. Currently, the insurance industry will invoke different applications to serve different requirements of the insured person or different insured items.
In the process of implementing the conventional insurance project, the customer needs are known, a system is formulated according to the customer needs, the system is used by the customer in the form of an application program, and the system between each project is completely independent, so that the implementation of each project is the development of an independent system. However, many of the functions of each eye-catching system are the same, and only a small number of functions between systems are individually customized to each customer's needs. The existing development application programs are all used for repeatedly developing the same content and personalized content, so that the project development time is long, and the time cost and the personnel cost are high.
Therefore, it is necessary to design a personalized definition method for insurance application programs, so that after two modules of project personalized customization and general rule application platform are extracted separately, the two modules can be combined for each development project, and development time and personnel cost are reduced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a personalized definition method and a system of insurance application programs.
In order to achieve the purpose, the invention adopts the following technical scheme: a method for personalized definition of insurance applications, the method comprising:
establishing a rule application platform based on the self-built framework;
establishing a pure maven project based on the self-built frame;
newly building a template for the jar packet in the maven engineering dependence rule application platform;
a maven project is newly built according to the newly built template to form a personalized customization module;
and developing a page module and a function module according to the rule application platform and the personalized customization module.
The further technical scheme is as follows: the steps of developing the page module and the function module according to the rule application platform and the personalized customization module comprise the following specific steps:
under the same directory structure as the directory where the related files on the rule application platform are located, covering the original corresponding files in the rule application platform by using the files with the same name on the personalized customization module to form the page module;
and rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding annotation, and calling the rewritten interface when starting to form the functional module.
The further technical scheme is as follows: and rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding an annotation, calling the rewritten interface when starting, and forming the functional module, wherein the annotation is @ Primary.
The invention also provides a personalized definition system of the insurance application program, which comprises a platform establishing unit, an engineering establishing unit, a template establishing unit, a customization module forming unit and a development unit;
the platform establishing unit is used for establishing a rule application platform based on the self-constructed framework;
the engineering establishing unit is used for establishing a pure maven engineering based on the self-constructed framework;
the template establishing unit is used for establishing a template for the jar package in the maven engineering dependence rule application platform;
the customization module forming unit is used for building a maven project according to the newly built template to form a personalized customization module;
the development unit is used for developing a page module and a function module according to the rule application platform and the personalized customization module.
The further technical scheme is as follows: the development unit comprises a page module development module and a function module development module;
the page module development module is used for covering the original corresponding file in the rule application platform by using the file with the same name on the personalized customization module under the same directory structure as the directory where the related file on the rule application platform is located, so as to form the page module;
the functional module development module is used for rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding annotations, and calling the rewritten interface when starting to form the functional module.
Compared with the prior art, the invention has the beneficial effects that: according to the method for defining the application program of the insurance industry in the invention, the personalized definition module and the rule application platform are established, the personalized definition module depends on the rule application platform, the page customization module is established, class rewriting is realized on the original logical interface, and the @ Primary annotation is added, so that the customization of the functional module is completed, after the two modules of the project personalized customization and the general rule application platform are independently extracted, the two modules can be combined for each development project, and the development time and the personnel cost are reduced.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
Fig. 1 is a flowchart of a method for personalized definition of insurance applications according to an embodiment of the present invention;
FIG. 2 is a detailed flow chart of development provided by an embodiment of the present invention;
FIG. 3 is a block diagram of a system for personalized definition of insurance applications according to an embodiment of the present invention;
fig. 4 is a block diagram of a development unit according to an embodiment of the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
As shown in the specific embodiments of fig. 1 to 4, the method for defining an insurance application program in an insurance industry provided in this embodiment can be applied to an insurance application program project development process, and after two modules of a project personalized customization and a general rule application platform are separately extracted, the two modules can be combined for each development project, so that development time and personnel cost are reduced.
As shown in fig. 1, a method for personalized definition of insurance application includes:
s1, establishing a rule application platform based on the self-constructed framework;
s2, building a pure maven project based on the self-built frame;
s3, building a template for the jar package in the maven engineering dependence rule application platform;
s4, a maven project is newly built according to the newly built template to form a personalized customization module;
and S5, developing a page module and a function module according to the rule application platform and the personalized customization module.
In the step S1, a rule application platform is established based on the self-built framework, and the rule application platform includes two modules, namely a core module and a business logic module, which are both established based on the self-built framework of the company.
The step of S2 is a step of creating a pure maven project based on the self-built framework, and is also created based on the self-built framework of the company.
Further, as shown in fig. 2, the step of S5, the step of developing the page module and the function module according to the rule application platform and the personalized customization module, includes the following specific steps:
s51, under the same directory structure as the directory where the related files on the rule application platform are located, covering the original corresponding files in the rule application platform with the files with the same name on the personalized customization module to form the page module;
and S52, rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding annotation, and calling the rewritten interface when starting to form the functional module.
For the step of S51, in the same directory structure, the original file is covered by the file with the same name on the personalized customization module to form the page module; in some customer personalized requirements, some adaptive adjustment needs to be made on the page structure of a product system, the realization in a product module does not need to be changed, and only the original file of the product module needs to be covered by a file with the same name under the same directory structure of a personalized customization module.
Taking a platform logo as an example: the stored picture directory of the rule application platform comprises a logo.
A client self-defining module is newly built, and a rule application platform is relied on;
a catalog src/main/webapp/img/' is newly built in a self-defining module, and then a logo picture defined by a customer is named as logo.
And when the service is started, the logo pattern is found to be changed into a logo picture customized by a customer, and other contents cannot be influenced.
And for the step of S52, rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding an annotation, calling the rewritten interface when starting, and forming the functional module, wherein the type of the annotation is @ Primary.
According to the requirements of different customers on the system, different functional requirements can be applied to the system, namely the logic for realizing the function is different from the logic for realizing the function in a production mode, the realization logic of the function is required to be modified, the logic modification is not carried out on a production module, but a personalized customization module is carved, the realization class of the interface for realizing the function logic is rewritten and a @ Primary annotation is added, so that the rewritten interface realization class is called to realize the function when the customer personalized module is started.
Taking the acquisition of the organization code as an example, the acquisition of the organization code may be performed as follows:
an interface class CodeService is newly established on a rule application platform, and a method for acquiring the mechanism code is defined.
The rule application platform presents a default implementation, which is queried from a table of the rule application platform.
And a client self-defining module is newly built and depends on a rule application platform.
A class realization CodeService is newly established in the personalized customization module, and a @ Primary annotation is added in the realization class,
and starting the service, and preferentially selecting the direct implementation class plus @ Primary when the interface is called.
In the development process, the overlyys technology of maven is used, a plurality of projects war can be combined into one project, if the project has files with the same name, the files in the main project cover the files with the same name of other projects, the main technical support for customizing the page module and the functional module is the overlyys technology of maven, when the personalized customization module is realized, only the personalized customization module needs to depend on the rule application platform, the page customization module creates a directory on the personalized customization module, the directory is the same as the directory where the related files on the rule application platform are located, and the original files can be covered by naming the files needing to be replaced as the same name as the files in the rule application platform. The functional module only needs to realize an original logical interface, adds @ Primary annotation on the realization class rewriting, and then rewrites the logic, and the functional module is customized without a peer directory or a same name.
According to the personalized definition method of the insurance application program, the personalized definition module and the rule application platform are established, the personalized definition module depends on the rule application platform, the page customization module is established, class rewriting is realized on the original logical interface, and the @ Primary annotation is added, so that the function module customization is completed, after the two modules of the project personalized customization and the general rule application platform are independently extracted, the two modules can be combined each time the project is developed, and the development time and the personnel cost are reduced.
As shown in fig. 3, the embodiment further provides a personalized definition system of insurance application, which includes a platform establishing unit 10, an engineering establishing unit 20, a template establishing unit 30, a customized module forming unit 40, and a developing unit 50.
And the platform establishing unit 10 is used for establishing a rule application platform based on the self-constructed framework.
And the project establishing unit 20 is used for establishing a pure maven project based on the self-constructed frame.
And the template establishing unit 30 is used for establishing a template for the jar package in the maven engineering dependency rule application platform.
And the customization module forming unit 40 is used for newly building a maven project according to the newly built template to form a personalized customization module.
And the development unit 50 is used for developing the page module and the functional module according to the rule application platform and the personalized customization module.
The rule application platform established by the platform establishing unit 10 includes two modules, namely a core module and a business logic module, which are both established based on a framework built by a company.
The engineering building unit 20 is also created based on a framework built by the company itself.
Further, the development unit 50 includes a page module development module 51 and a function module development module 52.
And the page module development module 51 is used for covering the original corresponding file in the rule application platform by using the file with the same name on the personalized customization module under the same directory structure as the directory where the related file on the rule application platform is located, so as to form the page module.
And the functional module development module 52 is configured to rewrite the implementation class of the interface of the corresponding functional logic on the personalized customization module, add an annotation, and call the rewritten interface when starting to form the functional module.
For the page module development module 51, under the same directory structure, the original file is covered by the file with the same name on the personalized customization module to form the page module; in some customer personalized requirements, some adaptive adjustment needs to be made on the page structure of a product system, the realization in a product module does not need to be changed, and only the original file of the product module needs to be covered by a file with the same name under the same directory structure of a personalized customization module.
And as for the functional module development module 52, rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding an annotation, calling the rewritten interface when starting, and forming the functional module, wherein the annotation is @ Primary. According to the requirements of different customers on the system, different functional requirements can be applied to the system, namely the logic for realizing the function is different from the logic for realizing the function in a production mode, the realization logic of the function is required to be modified, the logic modification is not carried out on a production module, but a personalized customization module is carved, the realization class of the interface for realizing the function logic is rewritten and a @ Primary annotation is added, so that the rewritten interface realization class is called to realize the function when the customer personalized module is started.
The development unit 50 uses the overrides technology of maven, can combine a plurality of projects into one project, and if the project has files with the same name, the files in the main project will cover the files with the same name of other projects, the main technical support for the customization of the page module and the function module is the overrides technology of maven, when the personalized customization module is realized, only the personalized customization module needs to depend on the rule application platform, the page customization module creates a new directory on the personalized customization module, which is the same as the directory where the related files on the rule application platform are located, and the original files can be covered by naming the files to be replaced as the same name as the files in the rule application platform. The functional module only needs to realize an original logical interface, adds @ Primary annotation on the realization class rewriting, and then rewrites the logic, and the functional module is customized without a peer directory or a same name.
According to the personalized definition system of the insurance application program, the personalized definition module and the rule application platform are established, the personalized definition module depends on the rule application platform, the page customization module is established, class rewriting is realized on the original logical interface, and the @ Primary annotation is added, so that the function module customization is completed, after the two modules of the project personalized customization and the general rule application platform are independently extracted, the two modules can be combined for each development project, and the development time and the personnel cost are reduced.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (2)

1. A method for personalized definition of insurance applications, the method comprising:
establishing a rule application platform based on the self-built framework;
establishing a pure maven project based on the self-built frame;
newly building a template for the jar packet in the maven engineering dependence rule application platform;
a maven project is newly built according to the newly built template to form a personalized customization module;
developing a page module and a function module according to the rule application platform and the personalized customization module;
the steps of developing the page module and the function module according to the rule application platform and the personalized customization module comprise the following specific steps:
under the same directory structure as the directory where the related files on the rule application platform are located, covering the original corresponding files in the rule application platform by using the files with the same name on the personalized customization module to form the page module;
rewriting the implementation class of the interface of the corresponding functional logic on the personalized customization module, adding annotation, and calling the rewritten interface when starting to form the functional module;
rewriting the implementation class of the corresponding functional logic interface on the personalized customization module, adding an annotation, calling the rewritten interface when starting, and forming the functional module, wherein the annotation is @ Primary;
the method is characterized in that an overlyys technology of maven is used, a plurality of projects war are combined into one project, if the project has files with the same name, the files in a main project cover the files with the same name of other projects, the main technical support for customizing of a page module and a functional module is the overlyys technology of maven, when the personalized customization module is realized, only the personalized customization module needs to depend on a rule application platform, the page customization module creates a directory which is the same as the directory where related files on the rule application platform are located on the personalized customization module, the original file can be covered by the same name of the file which needs to be replaced in the rule application platform, the functional module realizes an interface of the original logic, an @ Primary annotation is added on the realization class rewriting, then the logic is rewritten, and the functional module customizes the directory without the same level or the same name.
2. The individualized definition system of the insurance application program is characterized by comprising a platform establishing unit, an engineering establishing unit, a template establishing unit, a customization module forming unit and a development unit;
the platform establishing unit is used for establishing a rule application platform based on the self-constructed framework;
the engineering establishing unit is used for establishing a pure maven engineering based on the self-constructed framework;
the template establishing unit is used for establishing a template for the jar package in the maven engineering dependence rule application platform;
the customization module forming unit is used for building a maven project according to the newly built template to form a personalized customization module;
the development unit is used for developing a page module and a function module according to the rule application platform and the personalized customization module;
the development unit comprises a page module development module and a function module development module;
the page module development module is used for covering the original corresponding file in the rule application platform by using the file with the same name on the personalized customization module under the same directory structure as the directory where the related file on the rule application platform is located, so as to form the page module;
the function module development module is used for rewriting the implementation class of the interface of the corresponding function logic on the personalized customization module, adding annotations, and calling the rewritten interface when starting to form the function module;
the method is characterized in that an overlyys technology of maven is used, a plurality of projects war are combined into one project, if the project has files with the same name, the files in a main project cover the files with the same name of other projects, the main technical support for customizing of a page module and a functional module is the overlyys technology of maven, when the personalized customization module is realized, only the personalized customization module needs to depend on a rule application platform, the page customization module creates a directory which is the same as the directory where related files on the rule application platform are located on the personalized customization module, the original file can be covered by the same name of the file which needs to be replaced in the rule application platform, the functional module realizes an interface of the original logic, an @ Primary annotation is added on the realization class rewriting, then the logic is rewritten, and the functional module customizes the directory without the same level or the same name.
CN201710100454.XA 2017-02-23 2017-02-23 Personalized definition method and system for insurance application program Active CN106815032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710100454.XA CN106815032B (en) 2017-02-23 2017-02-23 Personalized definition method and system for insurance application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710100454.XA CN106815032B (en) 2017-02-23 2017-02-23 Personalized definition method and system for insurance application program

Publications (2)

Publication Number Publication Date
CN106815032A CN106815032A (en) 2017-06-09
CN106815032B true CN106815032B (en) 2020-04-14

Family

ID=59111668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710100454.XA Active CN106815032B (en) 2017-02-23 2017-02-23 Personalized definition method and system for insurance application program

Country Status (1)

Country Link
CN (1) CN106815032B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589939A (en) * 2017-10-23 2018-01-16 福建省万维智能科技有限公司 A kind of quick development platform design method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102449598A (en) * 2009-05-27 2012-05-09 微软公司 Package design and generation
CN106020849A (en) * 2016-06-14 2016-10-12 浪潮软件股份有限公司 Multi-subject implementation method based on web development framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8813031B2 (en) * 2012-03-02 2014-08-19 Oracle International Corporation System and method for automatically resolving dependencies of Java Archive files for use with Maven

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102449598A (en) * 2009-05-27 2012-05-09 微软公司 Package design and generation
CN106020849A (en) * 2016-06-14 2016-10-12 浪潮软件股份有限公司 Multi-subject implementation method based on web development framework

Also Published As

Publication number Publication date
CN106815032A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN103955364B (en) A kind of front end assemblies method suitable for mobile phone
CN107918666B (en) Data synchronization method and system on block chain
CN101477463B (en) Software platform and software development platform used for digital television set-top box
US20170146980A1 (en) Method and system of dynamically configuring functions of machine
CN110543328A (en) Cross-platform component management method, system, terminal and storage medium based on Ambari
CN102495735A (en) Web end UI (user interface) component application frame system
WO2016113914A1 (en) Development assistance system
CN106485390A (en) The generation method of examination & approval stream and device
CN101226479A (en) Method for implementing dynamic collocation of mobile phone menu
CN109032590B (en) Configuration method, device, terminal and storage medium of visual development environment
CN105183450A (en) E-government form model configuration system with foreground and background separation function
CN107133055B (en) Method for realizing customized development based on ClassLoader
CN109683973A (en) A kind of Insyde product BIOS method for customizing, device, terminal and storage medium
CN104375858A (en) Method and device for multiple browser platforms to execute javascript
CN103677788A (en) Reuse framework generating method, device and application system based on J2EE distributed architecture
CN106201466B (en) A kind of Template Manager method based on heat
CN103761107A (en) Software package customizing device and method
CN110764752A (en) System and method for realizing graphical service arrangement of Restful service based on micro-service architecture
CN106815032B (en) Personalized definition method and system for insurance application program
CN112181432A (en) System for realizing bundle modular packaging processing in ReactNative framework
CN104123155A (en) Business system page layer development platform and method based on WEB
US20140201709A1 (en) JavaScript™ Deployment Build Tool for software code that uses an object literal to define meta data and system code.
CN105590241B (en) Self-adaptive electronic bill implementation method and system
CN105930166A (en) Method based on WEB interface pop-up layers
WO2024066825A1 (en) Page project development method, apparatus, device, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant