First, Introduction:
Version type: Web version;
Using the tool: Myeclipse,tomcat.
Frame used: Struts2,spring,bootstrap
Main functions: Calculate maturity amount, calculate principal, calculate investment length
Second, the operation effect such as:
1) Calculate maturity Amount:
2) Calculate the principal:
3) Calculate the length of investment:
Third, technical analysis:
Struts2: Here with STRUTS2 is mainly the use of its request and view separation characteristics, by configuring the corresponding action in the Sruts.xml, the separation of HTML and Java code, thus reducing the coupling of the program, improve its maintainability, extensibility.
Spring: This program mainly uses the characteristics of sping control inversion, the object that the program needs to use in the form of bean configuration to the Applicationcontext.xml file, so do not need to use the object's class to the new corresponding object, also greatly reduced the process The coupling of the sequence.
Bootsrap: This is nothing to say, is to use its corresponding components to beautify the program interface, simple and convenient.
Iv. Structural Analysis:
As shown, the program's SRC directory is divided into three layers, action layer, service layer, and Service.impl layer, understand javaweb students should understand the corresponding role of these several layers, the author does not elaborate.
Five: summary and experience:
As we have only begun to learn the knowledge of the Web this semester, the framework used in this program is only extracurricular self-study, using only the tip of the iceberg. Knowing that there are many deficiencies in the procedures, but in the process of writing a lot of income.
A simple program, originally can be a few code to fix, why do I have to use a few large frameworks, from layering to naming all pay attention to normalization? I just think that since do, it is best to practice what they want to practice things, a method does not work, think of what is easier and easier to implement the method can be replaced. The small program as a project to do, simple program can also be not simple.
0312-Compounding Calculator 02