Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.04 KB

README.md

File metadata and controls

44 lines (36 loc) · 1.04 KB

SpringUtil

Provide some basic methods and functions in Spring Boot.

https://docs.github.com/zh/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#publishing-a-package

Setup

Use github

  • Add it in your root build.gradle at the end of repositories
allprojects {
    repositories {
        ...
        maven {
        url = uri("https://maven.pkg.github.com/xia-weiyang/SpringUtil")
        credentials {
            username = "你的github账号"
            password = "你的github token"
        }
    }
}
  • Add the dependency
dependencies {
     implementation 'com.jiushig:spring-util:lastVersion'
}

see lastVersion

Start

  • Add scanBasePackages = {"com.jiushig"} param in your @SpringBootApplication annotation.
@SpringBootApplication(scanBasePackages = {"com.jiushig"})
public class YourApplication {
    public static void main(String[] args) {
        SpringApplication.run(YourApplication.class, args);
    }
}