Provide some basic methods and functions in Spring Boot.
- 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
- 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);
}
}