Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有个大bug #57

Open
hollykunge opened this issue May 5, 2020 · 5 comments
Open

有个大bug #57

hollykunge opened this issue May 5, 2020 · 5 comments

Comments

@hollykunge
Copy link

@RequestMapping(value = "/", method = RequestMethod.POST) 其中value为空或者为/时报错:
"JSON parse error: Unrecognized token 'wMMsvm2p': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'wMMsvm2p': was expecting ('true', 'false' or 'null')↵ at [Source: (PushbackInputStream); line: 1, column: 10]"

@yinjihuan
Copy link
Owner

有具体的信息么?我这边试了下,跟uri没关系,没有出现你的问题

@hollykunge
Copy link
Author

@RequestMapping(value = "", method = RequestMethod.POST)改成这个试试,上面的写错了

@yinjihuan
Copy link
Owner

一样的,你给的错误是json转换错误,应该是post提交的数据转换问题,跟uri没关系,uri只是用来判断是否要加解密的

@hollykunge
Copy link
Author

嗯 我这确实有这个问题 请问怎样在zuul上使用呢?有例子吗?

@yinjihuan
Copy link
Owner

zuul中使用没区别,只是不能用注解了,可以用配置文件的方式。 https://github.com/yinjihuan/spring-cloud/tree/master/Spring-Cloud-Book-Code-2/ch-21/zuul-encrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants