First, map database to Project

Source: Internet
Author: User

Back-base public entities, classes, interfaces, configuration files, etc.

1.component-code is used to map the database, in src/main/resources/cfg/... Configure the database tables you want to map to modify TableName (table name) and PackageName (package name

2.component-code Src/main/java/component/code/run Modify the Propfiles (the path of the table name. properties) inside the run cfg/lego/ Brick.properties, run

3. Refresh the controller,dao,entity,jsp,service generated under the out file

4.entity (Brick,bricksch) into the corresponding entity folder below the Lego-base src/main/java/app/base/entity

5.Dao (Brickdao,brickmapper) into the corresponding entity folder below the Lego-base Src/main/java/app/base/dao

6.controller () put Lego-back Src/main/java/app/web/controller below, if the user name to configure the database here is copied in spring under resources and then modify the user name

7.lego-back run up, address bar input http://localhost:8080/lego-back/main.jsp start debugging.

First, map database to Project

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.