I'm developing a Spring Boot app using Jersey for Rest. The app will regularly have Rest controller and supporting classes added to it, basically adding small, specific logic at specific endpoints. I'd like to be able to drop jars containing Jersey controllers into a directory specified by loader.path and have them created (including Spring auto-wiring) by just restarting the server. Some Jersey resources form the base of the application and these are working fine because I've registered them via a ResourceConfig class but I'd really like to add resources without requiring a rebuild of the app. Is this possible? I'm failing to get the resources created, I'm not even sure they're in the classpath. In application.properites, I added:
-Dloader.path=lib/,resources/
and I've copied the jars into these folders, but they don't get instantiated.
Anybody got any ideas?