Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xia-weiyang/spring-util
- Owner: xia-weiyang
- License: gpl-2.0
- Created: 2018-08-15T03:44:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T03:31:48.000Z (4 months ago)
- Last Synced: 2024-07-19T07:31:16.034Z (4 months ago)
- Topics: springboot, util
- Language: Java
- Homepage:
- Size: 185 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
}
}
```