Manually create a springboot project based on idea


Create Maven project

Manually create a springboot project based on idea

Specify project name

Manually create a springboot project based on idea

Edit pom.xml configuration file

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""

    <!-- 1. Uniformly define parent items -- >
        <relativePath/> <!-- lookup parent from repository -->

        <!-- Skip test class loading -- >

    <!-- 2. Introduce third-party dependency -- >


    <!-- 3. Add plug-in -- >

Edit main startup class

@Springbootapplication // identifies that I am a springboot project
public class SpringBootRun {

    public static void main(String[] args) {,args);


Edit test controller

package com.jt.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

public class HelloController {

     *The user obtains friendly prompt information through the path of / Hello
    public String hello(){

        Return "it's really difficult to build an environment. Why can't I do it? What did I do yesterday;

Recommended Today

As package jar and AAR

Jar packaging (only class files and manifest files are included, not resource files, such as pictures and all files in Res) 1. Create a new project in as and a new model module. Add the model dependency to build. Gradle in the project, and then compile the project. Then add the following configuration in build.gradle […]