Spring Boot with custom dispatcherServler URL mapping

Hi all,

I reconfigured dispatcherPortlet to have mapping of /vaadinTest/* instead of /* like this:

@Bean
    public ServletRegistrationBean dispatcherRegistration(DispatcherServlet dispatcherServlet) {
        ServletRegistrationBean registration = new ServletRegistrationBean(dispatcherServlet);
        registration.addUrlMappings("/vaadinTest/*");
        return registration;
    }

Now when I go to /vaadin/Test/ it loads only part of the page, but it cannot download styles and JS because it searches for these assets on / instead of /vaadinTest/

Also app starts at /vaadinServlet/ but it has same problems.

I tried setting

vaadin:
	url-mapping: /vaadinTest/*

But this breaks atmosphere library:

2019-04-24 08:28:50.649 ERROR 3525 --- [           main]
 org.atmosphere.util.IOUtils              : 
java.util.NoSuchElementException: null
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1447) ~[na:1.8.0_201]

	at java.util.HashMap$KeyIterator.next(HashMap.java:1469) ~[na:1.8.0_201]

	at org.atmosphere.util.IOUtils.guestRawServletPath(IOUtils.java:290) [atmosphere-runtime-
	...

And also:

2019-04-24 08:28:50.649  WARN 3525 --- [           main]
 o.a.cpr.DefaultAsyncSupportResolver      : Failed to create AsyncSupport class: class org.atmosphere.container.JSR356AsyncSupport, error: java.lang.reflect.InvocationTargetException
2019-04-24 08:28:50.650 ERROR 3525 --- [           main]
 o.a.cpr.DefaultAsyncSupportResolver      : Real error: Unable to configure jsr356 at that stage

java.lang.IllegalStateException: Unable to configure jsr356 at that stage
	at org.atmosphere.util.IOUtils.guestRawServletPath(IOUtils.java:297) ~[atmosphere-runtime-2.4.30.vaadin1.jar:2.4.30.vaadin1]

	at org.atmosphere.util.IOUtils.guestServletPath(IOUtils.java:255) ~[atmosphere-runtime-2.4.30.vaadin1.jar:2.4.30.vaadin1]

	at org.atmosphere.container.JSR356AsyncSupport.<init>(JSR356AsyncSupport.java:65) ~[atmosphere-runtime-2.4.30.vaadin1.jar:2.4.30.vaadin1]

	at org.atmosphere.container.JSR356AsyncSupport.<init>(JSR356AsyncSupport.java:42) ~[atmosphere-runtime-2.4.30.vaadin1.jar:2.4.30.vaadin1]

	...

Any help is appreciated!