CN109816546A - A kind of farm farming management platform and method based on J2EE framework - Google Patents

A kind of farm farming management platform and method based on J2EE framework Download PDF

Info

Publication number
CN109816546A
CN109816546A CN201910137639.7A CN201910137639A CN109816546A CN 109816546 A CN109816546 A CN 109816546A CN 201910137639 A CN201910137639 A CN 201910137639A CN 109816546 A CN109816546 A CN 109816546A
Authority
CN
China
Prior art keywords
data
layer
platform
ali
controller
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.)
Pending
Application number
CN201910137639.7A
Other languages
Chinese (zh)
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.)
Naixun Technology (shanghai) Co Ltd
Original Assignee
Naixun Technology (shanghai) 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 Naixun Technology (shanghai) Co Ltd filed Critical Naixun Technology (shanghai) Co Ltd
Priority to CN201910137639.7A priority Critical patent/CN109816546A/en
Publication of CN109816546A publication Critical patent/CN109816546A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a kind of, and the farm farming based on J2EE framework manages platform, which mainly uses J2EE framework, and is deployed in cloud platform, and client uses red fox browser, and supports the access of NexusFarm system user cell phone application.It can not only improve the rural area farming efficiency of management, establish the seamless connection between each node of farming, and complicated business can quickly be handled, it is optimal with the effect of data transmission to guarantee that data are transferred, the content of request is called processor to carry out processing mapping by its stream compression method, Database Mapping is called later, and by the information data filling database of agriculture task, code backfills the content of database reaction.The present invention is able to achieve node data seamless interfacing, and data are transferred good with laser propagation effect.

Description

A kind of farm farming management platform and method based on J2EE framework
Technical field
The present invention relates to J2EE data framework fields more particularly to a kind of farm farming based on J2EE framework to manage platform And method.
Background technique
Currently, more and more intelligence platforms start to answer in every field with the fast development of electronic information technology With.However, there is no a set of intelligent, healthy and strong, shared and fair farm farming management platform, while each farming node User is difficult to recognize agricultural product information relevant to oneself, and production work efficiency is general.
Existing informatization platform, node administration is poor, and data are docked and transferred cannot between complexity, with multiple information nodes Seamless interfacing.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of farm farming management based on J2EE framework is provided Platform and method overcome traditional agriculture information platform impact-share poor, and complexity is transferred and transmitted to data, with each information node Dock difficult problem.
Realizing the technical solution of above-mentioned purpose is:
The present invention provides a kind of, and the farm farming based on J2EE framework manages platform, including cloud platform, and passes through The client that NGINX proxy server is connected with cloud platform;Cloud platform includes first Ali's Cloud Server, second Ali's cloud service Device, file server, Mysql RDS and backup Mysql RDS;The pass of first Ali's Cloud Server and second Ali's Cloud Server It is that data terminal is connected with Mysql RDS respectively, Mysql RDS is connected with backup Mysql RDS;The text of first Ali's Cloud Server Part transmission end is also connected with file server;The number of first Ali's Cloud Server, the second Ali's Cloud Server and file server It is connected respectively with NGINX proxy server according to end;Client includes trade company's platform, storage platform and cell phone end;NGINX generation The data terminal of reason server passes through the data terminal phase of HTTP or HTTPS and trade company platform, storage platform and cell phone end respectively Even;The external data interface being connected with external system is additionally provided on second Ali's Cloud Server;First Ali's Cloud Server and The server system with J2EE framework is additionally provided on two Ali's Cloud Servers.
Preferably, red fox browser is provided in client, red fox browser supports NexusFarm system mobile phone APP to connect Enter.
Preferably, the system logic architecture of the server system of the band J2EE framework includes data Layer, RestFull clothes Business provides layer and presentation layer.
Preferably, data Layer includes static resource management module and relational database system;RestFull service provides layer Including abnormality processing layer, permission control layer, WEB control layer, application cache layer, service execution layer and DAO layers;Presentation layer includes Handlebars, JQuery and HTML5.
Preferably, abnormality processing layer includes data encoding Filter and abnormality processing Filter, abnormality processing layer for pair Data encoding is abnormal and data transmission exception is detected and handled;
Permission control layer includes access authority Filter, permission control layer be used to carry out the access authority of user screening and Filtering;
WEB control layer includes Spring MVC, and WEB control layer is used to receive the data of client submission, to customer data Legitimacy verifies are carried out, and controls and jumps logic between each business interface;
Application cache layer saves in the buffer for that will load the biggish information integration of data volume, and the energy when reading data Directly transfer use;
Service execution layer includes Spring AOP and Spring IOC, service execution layer for realizing Service Component example Change and calls, the calculation processing of finishing service logic;
DAO layers are generated by Hibernate, and DAO layers for providing the database interface of data access object.
A kind of stream compression method of farm farming management platform, comprising the following steps:
S1, user terminal send a request to front controller DispatcherServlet;
After S2, front controller DispatcherServlet receive request, the mapping of HandlerMapping processor is called Device;
S3, HandlerMapping processor mapper are configured according to xml and note is searched, and finds specific processing After device, handler object and processor blocker are generated, returns to front controller DispatcherServlet together;
S4, front controller DispatcherServlet call HandlerMapping processor adapter;
S5, HandlerMapping processor adapter call specific back-end controller Controller by adaptation;
S6, back-end controller Controller execute completion, and return to ModelAndView;
S7, HandlerMapping processor return the implementing result ModelAndView of back-end controller Controller Back to front controller DispatcherServlet;
Implementing result ModelAndView is transmitted to ViewReslover by S8, front controller DispatcherServlet View resolver;
Specific View is returned after the parsing of S9, ViewReslover view resolver;
S10, front controller DispatcherServlet carry out render view according to View, i.e., fill model data Into view;
S11, front controller DispatcherServlet respond user terminal.
The beneficial effects of the present invention are:
(1) J2EE framework is used, so that platform supports simplification, component- based development model, and does not have to rely on any Specific operation system, middleware or hardware can be deployed to various platforms after exploitation is primary;
(2) portable strong, developer can be made to be transplanted to another operating environment from a kind of operating environment, without again Write source code;
(3) data interaction and node docking effect are good, traditional agriculture information platform impact-share can be overcome poor, data tune Complexity is taken and transmitted, difficult problem is docked with each information node;
(4) it is able to achieve the integrated deployment of multiple servers, the system for realizing superscalability meets the following business application It needs.
Detailed description of the invention
Fig. 1 is system logic architecture figure of the invention;
Fig. 2 is that physics of the invention disposes structure chart;
In figure, 101- trade company platform, 102- storage platform, 103- cell phone end, 104-NGINX proxy server, 105- file server, 106- first Ali Cloud Server, 107- second Ali Cloud Server, 108- external system, 109- Mysql RDS, 110- backup Mysql RDS.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings and specific examples.
The present invention provides a kind of farm farming management platform based on J2EE framework, which mainly uses J2EE frame Structure, and be deployed in cloud platform, client uses red fox browser, and supports the access of NexusFarm system user cell phone application. It can not only improve the rural area farming efficiency of management, establish the seamless connection between each node of farming, and can be to complicated business It is quickly handled, it is optimal with the effect of data transmission to guarantee that data are transferred.
The farm farming management platform based on J2EE framework is further described below in conjunction with attached drawing, is based on J2EE frame The farm farming management platform of structure includes two aspects of physical structure and system logic architecture.
Firstly, please referring to shown in attached drawing 1, physical structure includes cloud platform, and by NGINX proxy server 104 with The connected client of cloud platform;Cloud platform includes first Ali's Cloud Server 106, second Ali's Cloud Server 107, file service Device 105, Mysql RDS 109 and backup Mysql RDS 110;First Ali's Cloud Server 106 and second Ali's Cloud Server 107 relation data end is connected with Mysql RDS 109 respectively, and Mysql RDS 109 is connected with backup Mysql RDS 110; The file transmission end of first Ali's Cloud Server 106 is also connected with file server 105;First Ali's Cloud Server 106, second The data terminal of Ali's Cloud Server 107 and file server 105 is connected with NGINX proxy server 104 respectively;Client includes Trade company's platform 101, storage platform 102 and cell phone end 103;The data terminal of NGINX proxy server 104 passes through HTTP respectively Or HTTPS is connected with the data terminal of trade company platform 101, storage platform 102 and cell phone end 103;Second Ali's Cloud Server The external data interface being connected with external system 108 is additionally provided on 107.
It further, further include front controller on first Ali's Cloud Server 106 and second Ali's Cloud Server 107 DispatcherServlet, HandlerMapping processor mapper, ViewReslover view resolver and rear end control Device Controller.
It please refers to shown in attached drawing 2, the system logic architecture of farm farming management platform includes:
Data Layer, RestFull service provide layer and presentation layer;Data Layer includes static resource management module and relationship number According to library system;It includes abnormality processing layer, permission control layer, WEB control layer, application cache layer, clothes that RestFull service, which provides layer, It is engaged in execution level and DAO layers;Presentation layer includes Handlebars, JQuery and HTML5;
Presentation layer is the business operation interface of system, is mainly realized, is passed through using JSP, HTML, JQuery technology JQuery technology can obtain the data in WEB server on demand, rather than whole interface is refreshed, to reduce database Access times mitigate system burden;APP can obtain the data in application server by HTTP interface simultaneously.
Abnormality processing layer includes data encoding Filter and abnormality processing Filter, and abnormality processing layer is used for data encoding Abnormal and data transmission exception is detected and is handled;
Permission control layer includes access authority Filter, permission control layer be used to carry out the access authority of user screening and Filtering;
WEB control layer includes Spring MVC, and WEB control layer is used to receive the data of client submission, to customer data Legitimacy verifies are carried out, and controls and jumps logic between each business interface;
Application cache layer saves in the buffer for that will load the biggish information integration of data volume, and the energy when reading data Directly transfer use;
Service execution layer includes Spring AOP and Spring IOC, service execution layer for realizing Service Component example Change and calls, the calculation processing of finishing service logic;It is mainly realized using Spring Bean container, is held by Sping Bean The IOC of device relies on the dependence between injection mechanism decoupling Service Component;
DAO layers are realized using Hibernate technology, and DAO layers for providing the database interface of data access object.
Business platform major technique includes spring MVC technology, Spring IOC and AOP technology, Hibernate technology, MYSQL technology.It is all open source technology above.About the use of http session, it is mainly reflected in storage individual subscriber and logs in Information, individual's log-on message includes department's information, personal information and menu permissions data.It is obtained when user logs in Related data is stored in session, and number can be directly obtained from session when load without calling database It is operated according to finishing service.When the biggish information of load data volume, data integration can be saved in the buffer, read in this way Requested database can not be needed when data, guarantee the optimal of reading speed.
The data structure of business platform only needs to save the data for not needing modification, similar operations day than more visible Will.Using MongoDB database, system is clearly quick, and wherein APP interface is according to actual interface service conditions using centralized and unified Formula and two kinds of multiple step format, make the data of transmission interface concise as far as possible, and data reusability is high.According to the actual conditions of APP, Also exploitation has the corresponding H5 page, to complete relative complex business, avoids the complexity of interface.
The present invention uses the data platform of J2EE framework, support it is simplified, be based on Components Development model, due to J2EE base In Java programming language and J2SE platform, it, which is provided, writes primary, the portability run everywhere, it then follows the institute of J2EE standard There is server all to support the model.Therefore pass through the data platform of J2EE framework, also support isomerous environment, answering based on J2EE Any specific operation system, middleware or hardware are not depended on program.Therefore, the application program based on J2EE only needs to develop one Secondary to be deployed to various platforms, portable strong, the maintenance of later period component and component update substitution are convenient, can quickly increase new Function.
A kind of stream compression method of farm farming management platform, comprising the following steps:
S1, user terminal send a request to front controller DispatcherServlet;
After S2, front controller DispatcherServlet receive request, the mapping of HandlerMapping processor is called Device;
S3, HandlerMapping processor mapper are configured according to xml and note is searched, and finds specific processing After device, handler object and processor blocker are generated, returns to front controller DispatcherServlet together;
S4, front controller DispatcherServlet call HandlerMapping processor adapter;
S5, HandlerMapping processor adapter call specific back-end controller Controller by adaptation;
S6, back-end controller Controller execute completion, and return to ModelAndView;
S7, HandlerMapping processor return the implementing result ModelAndView of back-end controller Controller Back to front controller DispatcherServlet;
Implementing result ModelAndView is transmitted to ViewReslover by S8, front controller DispatcherServlet View resolver;
Specific View is returned after the parsing of S9, ViewReslover view resolver;
S10, front controller DispatcherServlet carry out render view according to View, i.e., fill model data Into view;
S11, front controller DispatcherServlet respond user terminal.
User creates the information data of an agriculture task, the front controller of calling system code The content of request is called HandlerMapping processor to carry out processing mapping by DispatcherServlet, front controller. Processor finds corresponding requesting method, is directly entered code flow and is operated.Database Mapping is called later, and agricultural is appointed In the information data filling database of business, code backfills the content of database reaction, is then responding to client and by data content body Now on the page.Whole process is quick and easy, is able to achieve node data seamless interfacing, and data are transferred good with laser propagation effect.
The present invention has been described in detail with reference to the accompanying drawings, those skilled in the art can be according to upper It states and bright many variations example is made to the present invention.Thus, certain details in embodiment should not constitute limitation of the invention, this Invention will be using the range that the appended claims define as protection scope of the present invention.

Claims (6)

1. a kind of farm farming based on J2EE framework manages platform, which is characterized in that including cloud platform, and pass through NGINX The client that proxy server is connected with cloud platform;Cloud platform includes first Ali's Cloud Server, second Ali's Cloud Server, text Part server, Mysql RDS and backup Mysql RDS;The relationship number of first Ali's Cloud Server and second Ali's Cloud Server It is connected respectively with Mysql RDS according to end, Mysql RDS is connected with backup Mysql RDS;The file of first Ali's Cloud Server passes Defeated end is also connected with file server;The data terminal of first Ali's Cloud Server, the second Ali's Cloud Server and file server It is connected respectively with NGINX proxy server;Client includes trade company's platform, storage platform and cell phone end;NGINX agency's clothes The data terminal of business device passes through HTTP or HTTPS and trade company platform respectively, the data terminal at store in a warehouse platform and cell phone end is connected;The The external data interface being connected with external system is additionally provided on two Ali's Cloud Servers;First Ali's Cloud Server and second Ali The server system with J2EE framework is additionally provided on Cloud Server.
2. a kind of farm farming based on J2EE framework manages platform according to claim 1, which is characterized in that in client It is provided with red fox browser, red fox browser supports NexusFarm system mobile phone APP access.
3. a kind of farm farming based on J2EE framework manages platform according to claim 1, which is characterized in that the band The system logic architecture of the server system of J2EE framework includes data Layer, RestFull service offer layer and presentation layer.
4. a kind of farm farming based on J2EE framework manages platform according to claim 3, which is characterized in that data Layer packet Include static resource management module and relational database system;It includes abnormality processing layer, permission control that RestFull service, which provides layer, Layer, WEB control layer, application cache layer, service execution layer and DAO layers;Presentation layer includes Handlebars, JQuery and HTML5.
5. according to a kind of farm farming management platform based on J2EE framework of claim 3 or 4, which is characterized in that
Abnormality processing layer includes data encoding Filter and abnormality processing Filter, and abnormality processing layer is used for data encoding exception It is detected and is handled with data transmission exception;
Permission control layer includes access authority Filter, and permission control layer is used to carry out screening and mistake to the access authority of user Filter;
WEB control layer includes Spring MVC, and WEB control layer is used to receive the data of client submission, is carried out to customer data Legitimacy verifies, and control and jump logic between each business interface;
Application cache layer saves in the buffer for that will load the biggish information integration of data volume, and can be directly when reading data Transfer use;
Service execution layer includes Spring AOP and Spring IOC, service execution layer for realizing Service Component instantiation and It calls, the calculation processing of finishing service logic;
DAO layers are generated by Hibernate, and DAO layers for providing the database interface of data access object.
6. a kind of stream compression method of the management of farm farming according to claim 1 platform, which is characterized in that including following Step:
S1, user terminal send a request to front controller DispatcherServlet;
After S2, front controller DispatcherServlet receive request, HandlerMapping processor mapper is called;
S3, HandlerMapping processor mapper are configured according to xml and note is searched, and finds specific processor Afterwards, handler object and processor blocker are generated, returns to front controller DispatcherServlet together;
S4, front controller DispatcherServlet call HandlerMapping processor adapter;
S5, HandlerMapping processor adapter call specific back-end controller Controller by adaptation;
S6, back-end controller Controller execute completion, and return to ModelAndView;
S7, HandlerMapping processor return to the implementing result ModelAndView of back-end controller Controller Front controller DispatcherServlet;
Implementing result ModelAndView is transmitted to ViewReslover view by S8, front controller DispatcherServlet Resolver;
Specific View is returned after the parsing of S9, ViewReslover view resolver;
S10, front controller DispatcherServlet carry out render view according to View, i.e., model data are filled into view In figure;
S11, front controller DispatcherServlet respond user terminal.
CN201910137639.7A 2019-02-25 2019-02-25 A kind of farm farming management platform and method based on J2EE framework Pending CN109816546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910137639.7A CN109816546A (en) 2019-02-25 2019-02-25 A kind of farm farming management platform and method based on J2EE framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910137639.7A CN109816546A (en) 2019-02-25 2019-02-25 A kind of farm farming management platform and method based on J2EE framework

Publications (1)

Publication Number Publication Date
CN109816546A true CN109816546A (en) 2019-05-28

Family

ID=66607411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910137639.7A Pending CN109816546A (en) 2019-02-25 2019-02-25 A kind of farm farming management platform and method based on J2EE framework

Country Status (1)

Country Link
CN (1) CN109816546A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751708A (en) * 2020-12-29 2021-05-04 锐捷网络股份有限公司 Network management method and system based on TR069 protocol
CN113190407A (en) * 2021-05-07 2021-07-30 北京金融资产交易所有限公司 Data operation and maintenance system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204224A (en) * 2016-07-13 2016-12-07 江苏农店宝供应链科技股份有限公司 A kind of Internet of Things agriculture business's system platform
CN109194762A (en) * 2018-09-20 2019-01-11 山东省农业科学院科技信息研究所 Soil information network release system and method based on SSH
CN109361737A (en) * 2018-09-25 2019-02-19 四川奥信通科技发展有限公司 Agricultural supervisory system based on Internet of Things

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204224A (en) * 2016-07-13 2016-12-07 江苏农店宝供应链科技股份有限公司 A kind of Internet of Things agriculture business's system platform
CN109194762A (en) * 2018-09-20 2019-01-11 山东省农业科学院科技信息研究所 Soil information network release system and method based on SSH
CN109361737A (en) * 2018-09-25 2019-02-19 四川奥信通科技发展有限公司 Agricultural supervisory system based on Internet of Things

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘运峰: "《基于工业互联网的SSM项目实战 物料订单管理系统》", 31 August 2018, 南开大学出版社 *
张建华 等: "基于J2EE的牛羊饲料销售智能管理系统的设计与实现", 《宁夏农林科技》 *
杨志远: "中国畜禽寄生虫查询系统与开放接口的建立", 《动物医学进展》 *
王风雷 等: "共享单车服务器及客户端设计与实现", 《物联网技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751708A (en) * 2020-12-29 2021-05-04 锐捷网络股份有限公司 Network management method and system based on TR069 protocol
CN113190407A (en) * 2021-05-07 2021-07-30 北京金融资产交易所有限公司 Data operation and maintenance system

Similar Documents

Publication Publication Date Title
CN109002362B (en) Service method, device and system and electronic equipment
CN106951233B (en) Mixed-mode smart phone application development framework system
US9043458B2 (en) Framework for facilitating implementation of multi-tenant SaaS architecture
CN103297381B (en) Service access method based on plugin and system thereof
US10949196B2 (en) Composite instance patching
CN104821954B (en) A kind of cross-platform remote procedure calling (PRC) method
US11042387B2 (en) Deploying cross-platform applications on mobile devices with native and web components
US20100218237A1 (en) Systems and methods for managing third-party application programming interface in a collaboration space
US20040133445A1 (en) Generic framework for applying object-oriented models to multi-tiered enterprise applications
US20040006550A1 (en) System and method for enterprise application interactions
US8418142B2 (en) Architecture for data validation
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
EP3436935A1 (en) Pre-formed instructions for a mobile cloud service
CN110780856B (en) Electricity data release platform based on micro-service
US11294740B2 (en) Event to serverless function workflow instance mapping mechanism
US20130151571A1 (en) Interface defined virtual data fields
CN109816546A (en) A kind of farm farming management platform and method based on J2EE framework
US20130159468A1 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
CN103152433A (en) Distributed server side framework and use, interaction and request processing method thereof
US20180121441A1 (en) Accessing application services from forms
CN110765592B (en) Simulation model, design method and information updating method thereof, equipment and storage medium
CN112486672A (en) Service memory cache calling method and device
US11803786B2 (en) Enterprise integration platform
CN105938442A (en) Multi-role dynamic medical information transmission mechanism based on MVC architectural pattern
Roche et al. Beginning Java Google App Engine

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190528