You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SpringBootApplication
public class SpringBootTestApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootTestApplication.class, args);
}
@SpringUI
public static class MyVaadinUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
setContent(new Label("Hello! I'm the root UI!"));
}
}
}
I see from the log:
2015-10-20 13:50:34.166 INFO 16180 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Servlet will be mapped to URLs [/vaadinServlet/*, /VAADIN/*]
Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js?v=7.5.5
This happens because the ServletForwardingController-hack contradicts the VaadinServletService#getStaticFileLocation usage of servletRequest.getServletPath()
The path "/vaadinServlet" is an internal one and requests to the root (and certain paths under the root) are automatically forwarded to it. The logging message, while technically accurate (the Vaadin servlet is at those paths and it is another servlet that handles the forwarding to support concurrent use of Vaadin and Spring MVC/REST/...), is perhaps misleading, but otherwise I believe mappings should just work as specified in the application. If nothing is specified, root path is used by default.
Originally by ksaua on 2015-10-20 14:56:55 +0300
Using the base:
I see from the log:
However, if try to access it on http://localhost:8080/vaadinServlet/ I get
This happens because the ServletForwardingController-hack contradicts the VaadinServletService#getStaticFileLocation usage of servletRequest.getServletPath()
Imported from https://dev.vaadin.com/ issue #19161
The text was updated successfully, but these errors were encountered: