高德API
parent
d57a082384
commit
f39563d4b8
|
@ -136,6 +136,11 @@
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -78,6 +78,11 @@
|
||||||
<artifactId>muyu-common-swagger</artifactId>
|
<artifactId>muyu-common-swagger</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.dtflys.forest</groupId>
|
||||||
|
<artifactId>forest-spring-boot-starter</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.muyu.system.forest.api;
|
||||||
|
|
||||||
|
import com.dtflys.forest.annotation.Get;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author DongZl
|
||||||
|
* @description: 测试
|
||||||
|
* @Date 2024/4/11 上午10:34
|
||||||
|
*/
|
||||||
|
public interface TestApi {
|
||||||
|
|
||||||
|
|
||||||
|
@Get("https://restapi.amap.com/v3/config/district?keywords=中国&subdistrict=3&key=9d17aa33a6d6d32bd34944f0d8ae60cf")
|
||||||
|
public String test();
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.muyu.system.forest.gaode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author DongZl
|
||||||
|
* @description: 高德地图接口
|
||||||
|
* @Date 2024/4/11 上午10:49
|
||||||
|
*/
|
||||||
|
public interface GaoDeApi {
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.forest;
|
||||||
|
|
||||||
|
import com.muyu.system.MuYuSystemApplication;
|
||||||
|
import com.muyu.system.forest.api.TestApi;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author DongZl
|
||||||
|
* @description: 测试
|
||||||
|
* @Date 2024/4/11 上午10:38
|
||||||
|
*/
|
||||||
|
@SpringBootTest(classes = MuYuSystemApplication.class)
|
||||||
|
public class FoRestTest {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private TestApi testApi;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testApiGaoDe(){
|
||||||
|
String test = testApi.test();
|
||||||
|
System.out.println(test);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
10
pom.xml
10
pom.xml
|
@ -30,11 +30,12 @@
|
||||||
<dynamic-ds.version>3.5.2</dynamic-ds.version>
|
<dynamic-ds.version>3.5.2</dynamic-ds.version>
|
||||||
<commons.io.version>2.13.0</commons.io.version>
|
<commons.io.version>2.13.0</commons.io.version>
|
||||||
<velocity.version>2.3</velocity.version>
|
<velocity.version>2.3</velocity.version>
|
||||||
<fastjson.version>2.0.41</fastjson.version>
|
<fastjson.version>2.0.46</fastjson.version>
|
||||||
<jjwt.version>0.9.1</jjwt.version>
|
<jjwt.version>0.9.1</jjwt.version>
|
||||||
<minio.version>8.2.2</minio.version>
|
<minio.version>8.2.2</minio.version>
|
||||||
<poi.version>4.1.2</poi.version>
|
<poi.version>4.1.2</poi.version>
|
||||||
<transmittable-thread-local.version>2.14.3</transmittable-thread-local.version>
|
<transmittable-thread-local.version>2.14.3</transmittable-thread-local.version>
|
||||||
|
<forest.version>1.5.36</forest.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!-- 依赖声明 -->
|
<!-- 依赖声明 -->
|
||||||
|
@ -94,6 +95,13 @@
|
||||||
<version>${kaptcha.version}</version>
|
<version>${kaptcha.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.dtflys.forest</groupId>
|
||||||
|
<artifactId>forest-spring-boot-starter</artifactId>
|
||||||
|
<version>${forest.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!-- pagehelper 分页插件 -->
|
<!-- pagehelper 分页插件 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.pagehelper</groupId>
|
<groupId>com.github.pagehelper</groupId>
|
||||||
|
|
Loading…
Reference in New Issue