开发者

Including some static html files?

开发者 https://www.devze.com 2022-12-29 23:44 出处:网络
Where can we place static html files in our war file? For example, a default project has this: war/projectname.html

Where can we place static html files in our war file? For example, a default project has this:

war/projectname.html

I'd like to just make a few static folders with static pages that are like:

war/projectname.html
war/signup/index.html
war/about/index.html

so that my users can just hit those static pages like:

www.myproject.com/signup
www.myproject.com/about

where would I put folders like that in our project tree? I tried putt开发者_如何学运维ing them under war/, just beside projectname.html (like above), but they don't seem to be available there, I just get a 404 error,

Thanks


This works fine as pointed out by Igor Klimer, I had a Filter enabled which was messing up the routing.

0

精彩评论

暂无评论...
验证码 换一张
取 消