IDEA tools java development of the project and initial configuration details of the directory structure

This part is himself in learning java configuration description of some of the records and related projects editor of the directory idea

First, include

◆ project initial configuration

◆ development skills will be

◆ running and debugging

◆ Advanced Advanced

◆ common plug-ins

Third, the installation

  Install the JDK

  Installation idea

Four, demo began

  1, tool

    ◆ Spring Boot only a few minutes you can be setting up a project run

    ◆ Mybatis access to the database

    ◆ Devtools is a hot deployment tool, change the code each time the idea will automatically restart

  2, the configuration file

    Configuration files are displayed in pom.xml

  3, hierarchical structure

    Class different functions in different functions inside the package

    ◆ Config: All configuration for storing Spring Boot configuration related classes, including classes start

    ◆ Controller: all requests inlet, the rear end of the front-access entrance

    ◆ Sevice: logic layer, is responsible for all business logic

    ◆ Mapper: or call Dao, persistence layer, is responsible for java and database interaction. Including the interface and XML file types

    ◆ Domain (Po): an entity mapping table, using a java class mapping database table, the table name is equivalent to the class name, the class attribute is equivalent Field

    ◆ Dto: data transfer objects (Data Transfer Object), front and rear ends for data interaction

      Domain and Dto difference:

      Domain class attribute field of the table and is fully consistent; Dto kind attribute table general and consistent, but will increase depending on the appropriate business scenarios, reducing properties.

        From the usage is: Domain for java data and mapping database table records, deleting data modification increases the database used in the service layer and the layer Mapper

               Dto rear end of the preceding data transmission; controller used in the layer and layer Service

               Service layer is interposed between the Controller and Mapper, and also Domain Dto conversion layer

Start operation

First, the project initialization settings

  ◆ appropriate font size

    1, font settings

      Shortcuts: ctrl + Alt + S

        

 

 

   2, the editing area setting

      

 

   3, the console settings

    

 

   

 

 ◆ UTF-8 encoding instead  

 

 

 

 ◆ JDK settings

  

 

 

  

 

 

 

 

 

 

 

◆ autoscroll settings

  

 

 ◆aotu import

  

 

 Associate an automatic import impor

Second, the editing area setting

  1, line number  

    

 

 

   2, tabs set

    

 

 

 

 

 3, tabs sort

  

 

 4, the number of tabs

  The default is to display 10 files

  modify

  

 

 5, wrap

  

Guess you like

Origin www.cnblogs.com/whdaichengxu/p/12214209.html