ColdFragrance opened a new issue, #4477:
URL: https://github.com/apache/shenyu/issues/4477
### Question
ShenYu-2.5.0中自定义插件doExecute方法
In ShenYu-2.5.0, I defined a plugin as follow
`protected Mono doExecute(final ServerWebExchange exchange, final
ShenyuPluginChain chain, final SelectorData selector, final RuleData rule) {
Flux<DataBuffer> fluxMap = exchange.getRequest().getBody();
fluxMap.subscribe(dataBuffer -> {
InputStream inputStream = dataBuffer.asInputStream();
try {
byte[] bytes = new byte[0];
bytes = new byte[inputStream.available()];
inputStream.read(bytes);
String body = new String(bytes);
log.info("请求body信息 >> {}", body);
} catch (IOException e) {
e.printStackTrace();
} finally {
if(null != inputStream) {
try {
inputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
});
return chain.execute(exchange);
}
`
And, request command is
`
curl -X POST http://localhost:9077/flow/one?n=999 -H "Content-Type:
application/json" -H "X-Access-Token:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiwiZXhwIjoxNjc4MzI0ODAyfQ.9QjlqXGYpXFXR70w3RFCFJ2dcwbrnrY2gTHyiVyF5io"
-d "{"a":"1","b":"2","c":"3"}"
`
When I use oracle model via changing spring.profiles.active to 'oracle' in
application.yaml, it is works.But use mysql model,it cannot enter
fluxMap.subscribe(dataBuffer -> {}) fragment.
My Questions:
1.How to get RequestBody?
2.What's the difference between oracle and mysql?
Addtionally,Shenyu-Admin is works when mysql model,but not works when oracle
model,such as

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org