Document directory
Configure web. XML in WEB-INF to add struts2 framework to Web application;
Configure struts. XML in src (eclipse will copy all files except java files under the src directory to the WEB-INF \ classes at compilation)
Import struts core class library into WEB-INF \ Lib;
Environment of this article:
1. ec
This article environment:
1. Eclipse for Java EE developer Helios
2. Struts 2.3.1.1
3. Tomcat 7.0.6
Configuration Prerequisites: Configure Tomcat, this article omits the Configure Tomcat step
In fact, the MyEclipse and Eclipse for Java EE configuration process is similar, the only difference is:
one), "0 ..." (representing 0 or more), "0,1" (for 0 or one), "N...M" (for N to M), "m...*" (for at least m).• Association Relationship (association) is the most commonly used relationship between classes and classes, which is a structured relationship between a class of objects and another class of objects. • In UML class diagrams, objects that are associated w
; Propertytpe, drop-down select simple, complete the settings for the id attribute gettter (), Setter () method, as shown in figure
Again, in turn, set other properties name, Addre_mail
Note: Personal recommendations do not use this feature, you can complete the gettter (), Setter () method, and the constructor of related parameters for each property through the Eclipse tool
3 Inter-class call relationship
can decompile the entire jar file into the Xxx-src.zip fileXxx-src.zip extract is a class of source filesThis is the anti-compiled source code.For more advanced usage please refer to the official original tutorial: http://www.blogjava.net/cnfree/archive/2012/10/30/390457.htmlThe following are reproduced from the official tutorials:
Plugin usage Instructions:For the Eclipse
commodity to a product that has an added class, registering a user registration class, and so on.
(3) boundary class : The boundary class is used to abstract the interaction objects between the external user and the system, including the interface classes, such as dialog boxes, windows, menus, etc.
In the early stages
UML modeling, it is important to understand the elements that appear on the class diagram. The developer must understand how to convert the elements appearing on the class diagram into Java. With Java as the representative of som
convert elements on the class diagram to Java. Java is used as a representative to combine some online instances. Below are some basic collection and summary of the individual: basic element Symbol: 1. Class (classes) class conta
Unified Modeling Language (UML. It includes the following important functions:
Visualizing)
Specifying)
Construting)
Document creation (documenting)
UML includes:
User case diagrams)
Class Diagrams)
Sequence Diagram (sequence diagrams)
Collaboration diagrams)
Activity diagram (activitiy diagrams)
Component diagra
repetition, there is a list in a, which holds the B object's n references , that's it.Well, to here, already put the above diagram of the relationship is finished, I hope you can have some gains, I also spent a lot of time ah (drawing, generate code, write to the blog, alas, a sweat). But it's worth it if you can get a thorough understanding of these relationships in UML class diagrams. :)+++++++++++++++++
can remember the original to fix a bug did what changes, don't be nervous, as long as you follow the above actions correctly submitted, idea will help you remember these details For example, select the recently submitted Task list, select Switch To,idea to automatically open the source code associated with the task, and navigate to the modified line of code. Of course, if the task is already close, you can also choose Remove to empty it. Second, UML class
In software systems, classes do not exist in isolation, there are various relationships between classes and classes, and UML provides different representations for different types of relationships.1. Related relationshipsAn Association (association) relationship is the most common relationship between a class and a class, and it is a structured relationship that is used to indicate that a
, generalization (generalization):is a class (called a subclass, sub-interface) that inherits the functionality of another class (called a parent, parent interface) and can augment its own new functionality, which is the most common relationship between classes and classes or interfaces and interfaces, and in Java such relationships are explicitly identified by t
above. For example, if a and B have a "one-to-many" repetition degree, there is a list in a that stores n references of object B, that's all. Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, generating code, writing to blog, alas, a sweat ). However, it is worth it if you can thoroughly understand the relationships of UML cla
, the object as a local variable, call the static method of the class. The class that is called within the parentheses of a class function is dependent on itself. Because this relationship is weakly connected, from the point of view of high cohesion and low coupling, such code is optimally organized, whether it is object-oriented or process-oriented.There is a sp
extension above. For example, if A and B have A "one-to-many" repetition degree, there is A list in A that stores N references of object B, that's all.
Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, generating code, writing to BLOG, alas, a sweat ). However, it is worth it if you can thoroughly understand the relationships of UML
description, we should be clear about the relationship between the various relations and what the code is like, the so-called degree of repetition, it is just an extension above. For example, if a and B have a "one-to-many" repetition degree, there is a list in a that stores n references of object B, that's all.
Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, gen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.