문제

I have my vaading application running on /* Here the configuration:

@WebServlet(value = "/*", asyncSupported = true)
    @VaadinServletConfiguration(productionMode = false, ui = ApplicationUI.class, widgetset = "com.myproject.bo.AppWidgetSet")
    public static class Servlet extends VaadinServlet {
    }

I want to move vaadin app to /vaadin/* but if I change the config to be

@WebServlet(value = "/vaadin/*", asyncSupported = true)

I got error Failed to load the bootstrap javascript: ./../VAADIN/vaadinBootstrap.js

How can I actually move Vaadin app? Thanks

도움이 되었습니까?

해결책

Please use the following web Servlet config

@WebServlet(value = {"/vaadin/*","/VAADIN/*"}, asyncSupported = true)

And restart your sever. This should work fine.

Thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top