KT Session2: Mostly code implementation (KT is knowledge Transfer)
, our project Data Feed service is in a connecting link throughout the social hub project. Yes, we call Autonomy's API Service, presented to us through the filtered media Data, up we can provide to smartphone, store.hp.com to increase the store traffic, to facilitate the transaction.
, is the project structure diagram, provides the admin site to the marketing team to make the decision, this is the logical diagram between each project team.
As shown, is the interface operation flow of our admin site. Next, taking advantage of Bruce's KT has not forgotten, the project KT in the harvest of knowledge points to do a summary.
1. JUnit test, previously thought that the testing part of Maven's src/test was done by testers. JUnit is written as a unit test tool in most cases by a Java developer, and this part of the test is done with the action business logic test. Testers are responsible for some of the core issues of high concurrency, which are similar to the operational efficiency of some systems.
2, UI, before the UI understanding is the front-end engineer. Be responsible for the beautification of the front page of the project. The UI is only designed to understand the user's experience habits. Make software products comfortable, simple, and free to use. The front-end engineer uses the technology to implement the layout and implementation of the page according to the requirements of the UI designer. The background is responsible for the business logic, so the background in the entire project running state, because the user experience changes are quite small.
3, the Admin site side display pictures, text, video, audio files. We want to show them, there are several forms: 1.0101-byte throttling exists in the database. 2. The file form is stored on the server. 3.URL form, dynamically loaded when needed.
4. The Web. XML configuration file, in addition to the servlet configuration. Filter and listener are also configured.
Filter filters, when admin site requires user login to manage, filter is responsible for filtering, in the Dofilter method, from the session to verify the login, or the first time to log in, jump to the login screen. With respect to the captcha, we can draw or invoke the Open source jar package plug-in using the Java Swing component.
Listener Listener, our server is in a state of blocked monitoring at all times. In order to ensure that each time the client has a request to send, we can immediately make the corresponding. The listener is used.
Servlets are also Java classes, and in MVC it is the responsibility of the Controller. Of course, if we use other frameworks such as SSH in the project, we will replace the servlet configuration with some of the corresponding framework's configuration files.
The CXF framework, which uses CXF to provide a Web service service, returns a. xml document.
A cursor in the database. Role: Typically, operations in a relational database always have an impact on the entire recordset, such as when retrieving a data table with a SELECT statement, all the records that satisfy the conditions in the statement's where clause are often required to process one or a subset of records at a time during the actual application process. In this case, you need to use a cursor to process the result collection inside the server, and he can help identify the records that are specified within a data collection so that you can selectively perform actions by record.
MongoDB;
Autonomy, through its provided com.autonomy.aci.client; we return the. XML document based on the parameters (autonomyd IP and Port). Java iterates through each node, one at a level, for each of these nodes.
Java parsing of JSON.
H2DB is suitable for use in testing the database. Both SQL Server and Oracle are charged.
Oscache Cache. Java objects can be cached in the form of key--value in map;. jsp;. HTML, and so on.
JUnit test. Using @test instead of traditional: Each method needs to inherit a base class.
Easymock is used for some knowledge of unit testing.
Also in Web. XML is configured with 404 pages; error.jsp page.
5, the front-end part:
AJAVX an asynchronous request. It encapsulates parameters such as URLs, DataType, data, success, and so on.
Front-end Debugging: F12. page debugging; Network debugging and console debugging.
HTML5 Adaptive interface for each pixel. Adapting to screen size is essentially a self-adapting interface. In the same way, we can use the browser to zoom in and out to fit all types of HTML5 mobile Web pages.
JQuery, which implements the encapsulation of JS, implements the modification of the DOM in the operation HTML.
Open-source bootstrap framework.
Project Summary Note Series Social Hub KT Session2