Thinking about the logistics of the project: to create a project

1, create a Maven project, the introduction of the configuration file, add a dependency.

2, create a database,

  (1) table name or name prefix hump,

  (2) To table structure substantially complete, the data type to be consistent.

3. Create mybatis reverse engineering profile,

  (1) configuration data in the source file;

  (2) of the mapper mapping file, an interface mapper, pojo generating location;

  (3) Select Exemple CRUD method.

4, the use of reverse engineering, to generate pojo and mapper through a configuration file.

5. Create a Service layer, create a method to test CRUD Test Method

6, the introduction of static resources CSS, JS, JSP pages

7, write basepath path, remember the path to add a "/", write base tags within the head tag, the introduction of the path, so that the entry into force of the page CSS and JS

8, create public jsp,

  (1)header.jsp和footer.jsp   

  (2) the resource is introduced into header.jsp, css,

  (3) introducing the resources into footer.jsp in js.

 

 

Guess you like

Origin www.cnblogs.com/luojack/p/11221711.html