Custom Java code Shortcut Builder usage and problem resolution

Source: Internet
Author: User

For a lot of work for a few years developers, the initial is written by word grammar by itself. And once the technical level has been improved to a certain level, at the same time the increase in workload, we must speed up the work efficiency. Therefore, we can make use of the necessary rapid development tools and instruments to assist our work. Here you will find a quick way to generate Java program code tools, the following steps:

1, first of all we download tools and specific instructions,: Java Shortcut code generator;

2, download down, the decompression will see there is a hsqldb file inside a hsqldb.jar, put this jar package can be found in their own directory, the specific reference shown in the figure:

3. Configuration Run environment variable-system environment variable h2drivers (NOTE: This variable must be a system variable, not a custom user variable, otherwise there will be a problem.) ), the value of the variable is the root directory of the Hsqldb.jar, see figure:

4. Locate the Start_h2_db.bat in the file and start the test database through Start_h2_db.bat. When the system variable is configured, it will command to open the browser automatically, the open browser will appear in the database test connection, it provides a different language and database for users to choose to use. It is important to note that the DOS window and browser opened by the command are not closed until the end of the process. For reference, see figure:

5, for the above configuration, it is necessary to connect with the database, then you must create a new data table structure in the database, so that it generates the corresponding entity. I use the MySQL database here, refer to the figure below:

6, next to configure the corresponding database connection, open the configuration file generator.xml. In this file, the main changes are generated Java class file package schema and database user name and password, driver connection. For reference, see figure:

7, run Rapid-gen.bat test generated code, this will appear problems, the specific reference shown in the figure:

It will prompt to find the server under the Jvm.dll, then we will have to manually create a new server folder so that you can, see figure:

8, after the above steps are correctly executed, you can enter "gen corresponding data table" in DOS, after the input, wait a minute will automatically generate code structure, the corresponding code structure file will automatically pop up. This is the end of the quick code generation using the tool. For reference, see figure:

Custom Java code Shortcut Builder usage and problem resolution

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.