-
Notifications
You must be signed in to change notification settings - Fork 438
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
RemoteExporter in SpringBoot 3.0.0 #303
Comments
New major Spring Framework version 6 has removed the spring-projects/spring-framework#25379 (comment) It is still possible to use this library without Spring integration and by creating the Then you can use the library to create and handle requests. @Controller
class SZv2JsonRpcController {
private final JsonRpcServer myJsonRpcServer;
SZv2JsonRpcController(JsonRpcServer myJsonRpcServer) {
this.myJsonRpcServer = myJsonRpcServer;
}
@PostMapping(path = "/api")
public void handleMyRequest(
jakarta.servlet.http.HttpServletRequest req,
jakarta.servlet.http.HttpServletResponse resp
) throws IOException {
this.myJsonRpcServer.handle(
new Jakarta2JavaxHttpServletRequestAdapter(req),
new Jakarta2JavaxHttpServletResponseAdapter(resp)
);
}
} The used API is https://github.com/briandilley/jsonrpc4j/blob/master/src/main/java/com/googlecode/jsonrpc4j/JsonRpcServer.java#L107-L140 But this is a working solution you can use until better solution is introduced into |
@cyb3r4nt maybe you have a complete example for spring boot 6? |
The example provided above works with Spring Framework 6. Spring Framework 6 integration in (PS Spring Boot and Spring Framework are different projects, and they have different versioning. Please do not mix them) |
Also, just checked the Otherwise, all created Those properties used in Will try to develop and provide some patches in spare time. |
Unfortunately application with jsonrpc4j fails on run in a new release of SpringBoot 3.0.0
The text was updated successfully, but these errors were encountered: