# spring-boot-starter-qqwry **Repository Path**: vindell/spring-boot-starter-qqwry ## Basic Information - **Project Name**: spring-boot-starter-qqwry - **Description**: spring-boot-starter-qqwry - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2018-12-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-boot-starter-qqwry qqwry starter for spring boot ### 说明 > 基于 qqwry 的 Spring Boot Starter 实现 1. 最新IP数据下载地址: http://www.cz88.net/ ### Maven ``` xml com.github.vindell spring-boot-starter-qqwry ${project.version} ``` ### Sample ```java import java.io.IOException; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import com.github.vindell.qqwry.spring.boot.ext.QQWry; @EnableQQwry @SpringBootApplication public class Application { @Autowired QQWry qqwry; @PostConstruct public void test() throws IOException { System.out.println(qqwry.findIP("127.0.0.1")); System.out.println(qqwry.findIP("127.0.0.1")); } public static void main(String[] args) throws Exception { SpringApplication.run(Application.class, args); } } ``` 如果使用外部IP数据,可自定义配置,参考如下: ```yaml qqwry: external: true location: classpath:qqwry.dat ```