vertx-web
vertx-web copied to clipboard
some problem when use vertx4.x
I'm using freemarker in my project and everything works fine in 3.x. However, after I upgraded to 4.2.4, static files such as css and js cannot be accessed, and 404 is always returned.
router.route().handler(StaticHandler.create("school"));
@smwg the description isn't enough to troubleshoot the problem. The example you wrote is used often in our test suite and seems to be valid. Can you provide a small project with the error and let us know which request is returning 404?
@smwg the description isn't enough to troubleshoot the problem. The example you wrote is used often in our test suite and seems to be valid. Can you provide a small project with the error and let us know which request is returning 404?
This is the result obtained by using remote debug. Could you please help me to find out the cause
@smwg the description isn't enough to troubleshoot the problem. The example you wrote is used often in our test suite and seems to be valid. Can you provide a small project with the error and let us know which request is returning 404?
I have this problem too!
@smwg @hectorqin a simple reproducer will help us understanding your problem. The image in above comment is not clear, like why the localFile
does not start with school
since you were creating the handler using StaticHandler.create("school")
@gaol It doesn't have much to do with 'StaticHandler.create("school")'. It is the same problem with the issues( https://github.com/vert-x3/vertx-web/issues/2183). In fact, I have located the issues. As long as I use the Caching capability of io.vertx.ext.web.common.template.Cacheingtemplateengine, static resources cannot be accessed after packaging