JEECG-Java EE Intelligent Development Framework based on code generator continued: JEECG Framework setup steps [UPDATE]

Source: Internet
Author: User
Tags generator sql error

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 generator configuration file: resources/configuration/database.properties (database connection) Resources/configuration/source_path.prop Erties (code generation Path Configuration) [2]. Framework Profile: Resources/config.properties (Database connection) Note: hibernate.hbm2ddl.auto=create default Under this property is create, when the project starts,

The project automatically creates the underlying table, so no database scripting is required; If you do not want to create the table each time the project starts, change the property to None

[3]. Sou rce directory for configuration items

Step three: Create a database encoded as UTF-8, with the database name: JEECG

Fourth step. After the program launches, execute INIT.JSP initialize the database data for example: http://localhost:8000/jeecg-framework/init.jsp
Note: Startup may error, this error is not related to ignore; [Org.hibernate.sql]alter Table Tauth drop foreign key fk4be8bfc70e6ff6e [Com.alibaba.druid.filter.stat.StatFilter] Merge SQL error, dbType mysql, sql:alter table tauth drop foreign key fk4be8bfc70e6ff6e com.alibaba.druid.sql. Parser. Parserexception:error FOREIGN

Fifth Step: Login system, user account: Admin/admin
Fifth step. Code generator Tool Class (how the generator is used, see Chapter Fourth: Generator usage rules) com.test.CodeUtil (single-table model) Com.test.CodeOneToMainUtil (one-to-many parent-child model)

Common deployment Issues: Description: If you are not using my elipse, there may be some problems when switching eclipse:
[1]. The WEB directory is not: WebRoot [2]. The project class setting is not: webroot/web-inf/classes [3]. The table created does not have a field [OBID][CREATE_DT] [4]. Project start time error: This error is ignored OK [org.hibernate.sql]alter table Tauth drop foreign Key fk4be8bfc70e6ff6e [ Com.alibaba.druid.filter.stat.statfilter]merge SQL error, dbType mysql, sql:alter table tauth drop foreign key FK4BE8BFC 70e6ff6ecom.alibaba.druid.sql.parser.parserexception:error FOREIGN
[5]. About table ' Easyssh.tauth ' doesn ' t exist problem resolution config.properties configuration file Hibernate.hbm2ddl.auto=create when the table is not initialized successfully, This parameter cannot be changed to: none [6]. About JEECG Deployment times spring.xml and other configuration files can not find errors in the import project to MyEclipse, be sure to check the resources, usually do project configuration file in src or web-inf, accustomed to natural, resulting in several deployments have problems, Now it's settled.


[7].service report injection failed.]   4  minutes ago   upload Download attachments   (206.83 KB)       WORKAROUND: This problem is due to changing the business package in the code generator, so you need to manually configure the next spring scan to load Service Packs   

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.