I have runnable jar of a spring boot application. I have used it as a library in my java project. Now I want to hit the run method of this library, but I am getting an exception "java.lang.ClassNotFoundException: org.springframework.boot.web.support.SpringBootServletInitializer". How should I go about this?
Thanks in advance
Hi All, I have solved the issue on my own. The run/main method of the spring boot library will be called like CLassName.methodName(Parameters) i.e. after importing the class from the library.
Make a library using jfx plugin. Rather then using the eclipse IDE.
The error I was getting was because of the dependencies which were to be added in the build path of the project.
Do these things and one is good to go.
PS: Hope this helps anyone in future.