spring Developer

springmvc implementation not working

Question

When trying to implement a spring-mvc in my project with this example https://github.com/Jahia/springmvc-example I always get the 400 error

400 - Bad Request trying to access "http://localhost:8080/cms/hello"

 

Answer

Hi,

To be compliant with spring 3.2, you explicitly need to declare the following requirement in your POM:

<properties>
    <require-capability>osgi.extender;filter:="(osgi.extender=org.jahia.bundles.blueprint.extender.config)"</require-capability>
</properties>