Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xia-weiyang/spring-util

Provide some basic methods and functions in Spring Boot.
https://github.com/xia-weiyang/spring-util

springboot util

Last synced: 27 days ago
JSON representation

Provide some basic methods and functions in Spring Boot.

Awesome Lists containing this project

README

        

# 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

```gradle
allprojects {
repositories {
...
maven {
url = uri("https://maven.pkg.github.com/xia-weiyang/SpringUtil")
credentials {
username = "你的github账号"
password = "你的github token"
}
}
}
```

- Add the dependency
```gradle
dependencies {
implementation 'com.jiushig:spring-util:lastVersion'
}
```
see [lastVersion](https://github.com/xia-weiyang/SpringUtil/releases)

## 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);
}
}
```