Turn from:http://justsee.iteye.com/blog/853546Body:1, right click on the project name, select New-------àuml2 Model2. Give class diagram a name3. Class Diagram1) If you want to map the entire project into a class diagram, drag the entire project into the class diagram2) If a single class is to be directed into a class diagram, drag a single Java class onto the class diagram4. Right click on the class diagram and select Export All Diagrms5. Click Brows
components are typically packaged into Jar,war packages. Component diagrams are used to represent dependencies between components.
Deployment diagram
Sequence diagram: Shows the detailed process of the specific use case, and shows the invocation relationship between the different objects in the process, and the sequence diagram describes the interaction between the objects (the sequence diagram and the communication diagram are called interaction diagr
1. When you make a graph, you can imagine that your code is extremely important. We use graphs as a shortcut to understand the code, rather than replacing the code. If you draw a picture but cannot imagine what code it represents, you are building a castle in the air. Stop what you are doing and think about how to convert it into code. Do not draw pictures for purpose. You must always remember that the code is what you want to do.
---Designers evolved from coder, coder experience (code --> repet
[From frenzied, a Java developer]
A link is a link between things. There are four important relationships between classes: dependency, generalization, association, and implementation. These relationships can be mapped to the code.
Dependency is a usage relationship. Changes that describe the specification of a thing may affect another thing that uses it (and vice versa ). In UML, it is represented as a dott
estimated before running, obviously did not introduce the MySQL driver jar package, the modified statement is as follows:Java-cp/home/user/backup/mybatis-generator-core-1.3.2.jar:/home/user/backup/mysql-connector-java-5.1.36.jar Org.mybatis.generator.api.shellrunner-configfile Generatorconfig.xmlAfter running, successfully generated files such as Pojo, pay attention to Generatorconfig.xml file Javamodelgen
Open Source website: http://www.jeeplus.orgJeeplus is a code generator based intelligent rapid development platform that can help solve 80% of repetitive tasks in Java projects, giving developers more focus on business logic. It can quickly increase development efficiency and help companies save labor costs without sacrificing flexibility.Jeeplus Rapid Development Purpose is: the simple function is generate
Recently because of the project needs, investigated the use of MyBatis 3.x, of course, also studied the use of generator to generate pojo,mapper and other documents by reverse engineering. Before using this tool, download the relevant jar package, and I'm using the latest Mybatis-generator-core-1.3.2.jar.
Here's a list of generatorconfig.xml:
I placed this XML file in the root of the project, followed b
RandomThe random class in Java generates a pseudo-random number, uses the seed of 48-bit, and then calls a linear congruential formula linear congruence equation (Donald Knuth's programming Art of 3.2.1)If two random instances use the same seed, and the same function is called, then the generated sequence is the sameYou can also call Math.random () to generate a random numberThe random instance is thread-safe , but concurrent use of the random instanc
random number generator in Java: Random,threadlocalrandom,securerandomIn the articleThe Random is: Java.util.Random,Threadlocalrandom namely: Java.util.concurrent.ThreadLocalRandomSecureRandom namely: Java.security.SecureRandomis Q:random thread-safe?A:random is thread-safe, but may have low performance under multithreading.Reference:Http://docs.oracle.com/javase/7/docs/api/
linear with congruential very much like:Xn+1= (A*XN) (mod m)In fact, it only c=0 the linear formula. Just to get a decimal, we do one more step:Yn = xn/mSince Xn is the remainder of M, the value of yn is between 0 and 1, thus to the random sequence on the (0,1) interval.In addition, there are mixed with congruential, two times with congruential, three times with similar methods such as congruential, the formula is similar, but also each has its merits and demerits, not in detail in this article
For a relatively large business system, we always add, delete, modify, paste, copy, think always let people have a kind of resistance in the heart. What is the way to automatically generate some classes, configuration files, or interfaces under normal development progress?
Feeling in the immediate want to do a relatively large business system, think of that endless additions and deletions to check, paste copy, immediately after the brain rises a cool breeze. So I thought of a
Reminder: A. Project development environment: M y E clipse6.5 + jdk1.6 + Tomcat6.0; B. The database currently tested has MYSQL5, oracle10g, SqlServer200 C. Google Chrome is recommended, and the easy UI uses other browsers to load slow project deployment steps:The first step. Decompression procedure, import myeclipse If there is no Java EE support, need to add;Step two. Modify the configuration file[1]. Code genera
Have a nice smileAsk questionsHow to use Java to generate serial numbers while supporting configurable and high concurrency???solve the problemSuppose your project has integrated the caching technologyIf you have a certain Java foundationIf......The following code implements a high-concurrency, configurable, high-efficiency serial number generator, can be used fo
build: Drag-and-drop quick custom build form with rich elements, rich text, upload controls, drop-down boxes, and more -main Attachment structure: Provides an example of a main table and a schedule module (generated by this code generator) -Organizational structure: Unlimited levels, corporate or departmental management -. Employee Management: and organization Department management, can be bound to login system users, authorization data permissions -
About MyBatis GeneratorMyBatis Generator (MBG) is a MyBatis code generator MyBatis and IBATIS. He can generate MyBatis versions of the code, and Ibatis 2.2.0 version of the code after. He can introspect the tables (or tables) of the database and generate the underlying objects that can be used to access (multiple) tables. This does not require the creation of objects and configuration files when interacting
Java UUID Generator (JUG), uuidjug
UG is a Java-only UUID generator. UUID refers to the number generated on a machine, which ensures that all machines in the same time and space are unique. Generally, the platform provides APIs for UUID generation. UUID is calculated according to the standards set by the Open Software
I am looking forA random number generator that isBiased towards giving numbers"Furthest away" fromASetof already selected numbers.For example,ifMy range is[1, -] and I PassinchASetof numbers such as(1, -, +),Then I would want the generator to"prefer"Producing numbers further away from 1, -, and +.Therefore, numbers such as -Or -Would is more likely to be drawn than -Or +.I suspect that Thismay already exi
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.