Hello 小伙伴们大家好,我是Krain

Let me introduce myself briefly: Soon graduated from club livestock calves, at present has been working for a year junior Java (probably not), with his love of programming development on the volume undead went dead volume in the industry, then I will be with the identity of their CV (novice small white) record growth process, to urge their learning, meet wrong record, deepen coding memory, technology to communicate.

Hereby declare: I am new, if the article mentioned technical analysis are their own understanding, if there is wrong, please correct

With the tools installed, let’s start with a basic understanding of the Android Studio tool.

Next, complete the configuration of the tool, such as downloading the mobile emulator, configuring the SDK path in setting and so on (the method is the same as configuring the MAVEN repository with IDEA), which we will not expand here.

Open IDEA to create the Spring Boot project. The following is my directory structure. I changed the suffix of application to YML and configured the port number and database address.

After that, need to introduce the dependency of Web, mysql and JPA in the POM file, do not know can also directly copy my, if jPA does not use Mybatis (plus) can, its purpose is just to have a basic operation on the database.

<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency>  <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency>  <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysql.version}</version> </dependency> </dependencies>Copy the code

After loading maven and other dependencies, I started the project to check whether it could be started normally. At that time, I encountered a problem: after starting the project, it stopped automatically. After checking, IT was my negligence that omitted the reliance on web starter

    <dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
Copy the code

At this point, we have completed the basic preparation work, what to add in the future, for example, we may use the Security or Shiro Security framework, then need to add a dependency to the POM file and so on