Git Product home page Git Product logo

Comments (5)

TommyLemon avatar TommyLemon commented on April 28, 2024

麻烦把请求的 URL, JSON,返回结果,以及 错误截屏 发下

from apijson.

35924784 avatar 35924784 commented on April 28, 2024

default

default

from apijson.

35924784 avatar 35924784 commented on April 28, 2024

最终在get上增加了Produces,响应头就正常了。
default

from apijson.

TommyLemon avatar TommyLemon commented on April 28, 2024

原本应该是 PostMapping

	/**获取
	 * @param request 只用String,避免encode后未decode
	 * @param session
	 * @return
	 * @see {@link RequestMethod#GET}
	 */
	@PostMapping(value = "get")
	public String get(@RequestBody String request, HttpSession session) {
		return new DemoParser(GET).setSession(session).parse(request);
	}

https://github.com/TommyLemon/APIJSON/blob/13b3e0ac7243b66dc9eb32ebe55204131f1ebe73/APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/Controller.java

Response Header 也是 application/json
image

from apijson.

35924784 avatar 35924784 commented on April 28, 2024

谢谢,已经找到原因了。需要请求头增加如下图参数就可以了:
default

from apijson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.