B站视频

Step 1

Modify build.gradle

  1. Module Dir
apply plugin: 'org.springframework.boot'
apply plugin: 'java'


dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    compile 'org.springframework.boot:spring-boot-starter:2.3.4.RELEASE'
    compile 'org.springframework.boot:spring-boot-starter-web:2.3.4.RELEASE'
}
  1. Project Dir
buildscript {
    ext {
        springBootVersion = '1.5.9.RELEASE'
    }
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Step 2

  1. Rename Res dir And create application.properties
  2. delete useless files

Step 3

  1. Create Boot Point Class DemoApplication.java

  2. Create Control

  3. Boot And Test

  4. Package Jar

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2021-06-01
  • 2021-09-13
  • 2021-09-04
  • 2021-08-13
  • 2022-02-18
  • 2021-09-17
猜你喜欢
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2021-07-08
相关资源
相似解决方案