Context
Let's say we have a Spring app (spring.jar
) dependent on lib.jar
. This jar would have a method
String getData(). This method would return the letter "A".
We would run the spring app with the following command:
java -cp "spring.jar:lib.jar" Main
After the spring application starts successfully, we can test it and surely we see that Spring shows the letter 'A' from the lib.jar
.
The Question
Is there anyway to override the lib.jar
(that will return now the letter 'B') and have this reflected in the spring server without restarting it?