Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

}

```