Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiwepy/maven-client-spring-boot-starter
spring-boot-starter-maven-client
https://github.com/hiwepy/maven-client-spring-boot-starter
Last synced: 24 days ago
JSON representation
spring-boot-starter-maven-client
- Host: GitHub
- URL: https://github.com/hiwepy/maven-client-spring-boot-starter
- Owner: hiwepy
- License: apache-2.0
- Created: 2019-04-12T09:18:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T01:38:36.000Z (4 months ago)
- Last Synced: 2024-09-13T14:29:08.784Z (4 months ago)
- Language: Java
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maven-client-spring-boot-starter
Spring Boot Starter For Maven Client### 说明
> https://www.cnblogs.com/xiaosiyuan/articles/5887642.html
### Maven
``` xml
com.github.hiwepy
maven-client-spring-boot-starter
${project.version}```
### Sample
```java
import javax.annotation.PostConstruct;
import org.apache.maven.spring.boot.MavenClientTemplate_Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication
public class Application {
@Autowired
private MavenClientTemplate clientTemplate;
@PostConstruct
private void init() {
Resource resource = clientTemplate.resolve(coordinates);
System.out.println("Description:" + resource.getDescription());
System.out.println("Filename:" + resource.getFilename());
}
public static void main(String[] args) throws Exception {
SpringApplication.run(Application.class, args);
}}
```