Skip to content

Commit

Permalink
Fix Spring for Flow 2.2
Browse files Browse the repository at this point in the history
vaadin/spring#509

Update add-on version to 12.2
  • Loading branch information
caalador authored and Denis committed Nov 18, 2019
1 parent 91166a0 commit 9da71da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vaadin-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring-parent</artifactId>
<version>12.1-SNAPSHOT</version>
<version>12.2-SNAPSHOT</version>
</parent>

<artifactId>vaadin-spring</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
import com.vaadin.flow.server.DevModeHandler;
import com.vaadin.flow.server.InvalidRouteConfigurationException;
import com.vaadin.flow.server.RouteRegistry;
import com.vaadin.flow.server.VaadinConfigurationException;
import com.vaadin.flow.server.VaadinServletConfig;
import com.vaadin.flow.server.VaadinServletContext;
import com.vaadin.flow.server.startup.AbstractRouteRegistryInitializer;
import com.vaadin.flow.server.startup.AnnotationValidator;
Expand Down Expand Up @@ -757,8 +759,8 @@ public static DeploymentConfiguration createDeploymentConfiguration(
context, registration, appContext);
return DeploymentConfigurationFactory
.createPropertyDeploymentConfiguration(servletClass,
servletConfig);
} catch (ServletException e) {
new VaadinServletConfig(servletConfig));
} catch (VaadinConfigurationException e) {
throw new IllegalStateException(String.format(
"Failed to get deployment configuration data for servlet with name '%s' and class '%s'",
registration.getServletName(), servletClass), e);
Expand Down

0 comments on commit 9da71da

Please sign in to comment.