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