File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
bootique-mvc-mustache/src/test/java/io/bootique/mvc/mustache Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2323import io .bootique .BQRuntime ;
2424import io .bootique .Bootique ;
2525import io .bootique .jetty .JettyModule ;
26+ import io .bootique .jetty .MappedServlet ;
2627import io .bootique .jetty .junit5 .JettyTester ;
2728import io .bootique .junit5 .BQApp ;
2829import io .bootique .junit5 .BQTest ;
@@ -37,7 +38,7 @@ public abstract class TestWithTemplateServer {
3738 @ BQApp (BQTestScope .GLOBAL )
3839 static BQRuntime templateServer = Bootique .app ("-s" )
3940 .autoLoadModules ()
40- .module (b -> JettyModule .extend (b ).addStaticServlet ( "templates" , " /io/bootique/mvc/mustache/view/*" ))
41+ .module (b -> JettyModule .extend (b ).addMappedServlet ( MappedServlet . ofStatic ( " /io/bootique/mvc/mustache/view/*"). name ( "templates" ). build () ))
4142 .module (b -> BQCoreModule .extend (b )
4243 .setProperty ("bq.jetty.staticResourceBase" , "classpath:templates_docroot" ))
4344 .module (templateServerJetty .moduleReplacingConnectors ())
You can’t perform that action at this time.
0 commit comments