java.lang.IllegalArgumentException: argument type mismatch websocket 调用 json 报错

来源:互联网 发布:马钢h型钢数据对照表 编辑:程序博客网 时间:2024/04/29 17:40

JSON Processing is built, assembled and installed using Maven. It is deployed to the Maven Central repository.

Developers using maven are likely to find it easier to include and manage dependencies of their applications. 

This document will explain to both maven and non-maven developers how to use JSON Processing in their applications. 

In general, if youre not using Maven, youd need to download dependencies (jar files) directly from the Maven repository and include it in the classpath.

Compiling

If you want to compile an application with JSON Processing API, declare a dependency on json-api in maven project. 

Note that the api dependency doesn't allow you to run the application.

<dependency>    <groupId>javax.json</groupId>    <artifactId>javax.json-api</artifactId>    <version>1.0</version></dependency>


For non-maven projects, the JSON Processing API jar can be downloaded and included in the classpath for compiling the applications.

Running

If you want to run an application with JSON Processing API, declare a dependency on json-api implementation in your maven project.

<dependency>    <groupId>org.glassfish</groupId>    <artifactId>javax.json</artifactId>    <version>1.0.4</version></dependency>


For non-maven projects, the JSON Processing RI jar can be downloaded and included in the classpath for running the applications.


0 0
原创粉丝点击