-
Notifications
You must be signed in to change notification settings - Fork 69
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
Resource handlers support #15
Comments
SBP supports resource loading. Please check out this document that explain how sbp load resources. and here are related the test cases:
|
Thanks for your answer. The idea was to expose the plugins resources from the application, through the standard
|
static resource handing is added. Please check out this test case for details:
this feature is available at v0.1.6 and SNAPSHOOT. |
Hi, I'm trying to download the new version from maven central but it doesn't seem to be published yet (I tried with Here is my maven configuration:
|
sorry, fotget to publish...should be available now. You could also use SNAPSHOT version that always map to latest of matser.
|
Thanks, I was able to download the new version. When I tried the new feature, I got the following messages :
From what I've seen in your recent changes, I can't guess what I could have missed (I basically only added some new configurations in the I tried both |
I should have explained this supports a little bit more... Sbp supports resource handling based on Spring Boots'
full version here: https://github.com/hank-cp/sbp/blob/31614cf79ce3c25ac06f5dfe118469894aa1fffb/demo-app/src/main/resources/application.yml |
Hello, Thanks a lot for your support. |
Hi @j-barata ! I have the same problem when Spring Bootstrap try to createController java.lang.ClassCastException: class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping cannot be cast to class org.laxture.sbp.internal.PluginRequestMappingHandlerMapping What should I do to fix it? |
All you have to do is to switch to 0.1.7 version (or upper) and to set this configuration in your "application.yml" :
You can also have a look at this sample project : https://github.com/j-barata/marketbasket-sbp-sample |
Hello,
I'm trying to setup a resource provider within a plugin (the resources shall be provided by the plugin itself), and tried the following code :
But I only get a
404 Error
.Is this kind of feature currently supported ?
Thanks
The text was updated successfully, but these errors were encountered: