我在maven中构建了一个spring引导应用程序,并在intellij中打开它,当我运行main类时,它将成功运行并按预期接收api响应。但是当我在终端上使用 mvn spring-boot:run
然后应用程序成功运行,但api的响应与预期不同。
预期responses:- {"result":{"balance":1970700,"currency":"DIVI"},"status":"true"}
我得到的答复是: {"result":"getAccountState failed","status":"false"}
这是我的pom.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.diem</groupId>
<artifactId>wallet</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>wallet</name>
<description>Project for diem wallet</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.4.3</version>
</dependency>
<dependency>
<groupId>dev.jlibra</groupId>
<artifactId>jlibra-core</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>dev.jlibra</groupId>
<artifactId>jlibra-poller</artifactId>
<version>0.16.0</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
``` `jlibra-core` 在库的应用程序中手动添加的依赖项
为什么会这样?有什么建议吗?
暂无答案!
目前还没有任何答案,快来回答吧!