File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/main/java/com/devopsdemo/tutorial/addressbook Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11package com .devopsdemo .tutorial .addressbook ;
22
33import javax .servlet .annotation .WebServlet ;
4+ import javax .servlet .ServletException ;
45
56import com .vaadin .flow .component .button .Button ;
67import com .vaadin .flow .component .grid .Grid ;
910import com .vaadin .flow .component .textfield .TextField ;
1011import com .vaadin .flow .router .Route ;
1112import com .vaadin .flow .server .VaadinServlet ;
12- import com .vaadin .flow .server .VaadinServletConfiguration ;
1313import com .devopsdemo .tutorial .addressbook .backend .Contact ;
1414import com .devopsdemo .tutorial .addressbook .backend .ContactService ;
1515
@@ -68,8 +68,12 @@ private void refreshContacts(String stringFilter) {
6868 contactForm .setVisible (false );
6969 }
7070
71- @ WebServlet (urlPatterns = "/*" )
72- @ VaadinServletConfiguration (ui = AddressbookUI .class , productionMode = false )
71+ @ WebServlet (urlPatterns = "/*" , name = "MyUIServlet" , asyncSupported = true )
7372 public static class MyUIServlet extends VaadinServlet {
73+ @ Override
74+ protected void servletInitialized () throws ServletException {
75+ super .servletInitialized ();
76+ getService ().setClassLoader (getClass ().getClassLoader ());
77+ }
7478 }
7579}
You can’t perform that action at this time.
0 commit comments