-
Notifications
You must be signed in to change notification settings - Fork 28
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
Switch to Spring for the REST API #111
Comments
Could you please explain how / why the problems you describe will be solved with Spring? |
Sure, sorry for my brevity.
|
@ilyagrishkov @MihhailSokolov do I have to keep Main.java and RestAPIPlugin.java that implements the PF4J I'd just use: @SpringBootApplication
public class RestApplication {
public static void main(String[] args) {
SpringApplication.run(RestApplication.class, args);
}
} With a Spring @Component
public class KnowledgeBaseConnector {
@PostConstruct
public void connectToKnowledgeBase() { /* ... */ }
} So instead of launching it with |
Done in #123. |
As far as the REST API is concerned, there are still a few issues:
All (or part of) these problems could be solved together by switching from RESTeasy to Spring (especially for Spring DI).
This change would also affect integration tests #89 and Dockerization #101.
The text was updated successfully, but these errors were encountered: