Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Spring Boot executable jar with embedded Jetty?

I am trying to use Jetty instead of Tomcat as my embededded application server in my Spring Boot projects but I have a problem. (I tought it was
working but I as fooled my IntelliJ IDEA, the jar file built by gradle does not work...)

Jetty does not see my web root folder. So I get an 404 error when trying to access my html files..
In Tomcat, I have a my web content inside /META-INF/resources/ inside my jar file but that does not work when using Jetty. I have alse tried to put
my webcontent inside /static/ and /webapp/ but Jetty still does not see any html files.

What am I missing?


Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@xxxxxxxxxx
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------


Back to the top