Java是否支持.htaccess还是有其他选择吗?(Does Java somehow supports .htaccess or are there any alternatives?)

编程入门 行业动态 更新时间:2024-10-09 04:19:46
Java是否支持.htaccess还是有其他选择吗?(Does Java somehow supports .htaccess or are there any alternatives?)

我有一个使用Java的查询,可以通过.htaccess文件在PHP中轻松维护,例如: 我背后的主要问题是如何在java中明确允许/禁止不同文件类型的缓存? 我可以轻松地在PHP使用.htaccess几行代码 我目前在Windows 7上使用JDK 7,Apache Tomcat 7.0.22和NetBeans 7.1 IDE。

I have a query in working with Java that are easily maintained in PHP through .htaccess file such as: My main problem behind it is How can I explicitly allow/disallow caching of different files types differently in java ? which I can easily do in PHP with few line of code in .htaccess I am currently using JDK 7, Apache Tomcat 7.0.22 with NetBeans 7.1 IDE on Windows 7.

最满意答案

.htaccess实际上是由你的网络服务器读取的,在这种情况下是apache。 您应该查看您的Web服务器支持的内容。 也许,你可以发布你正在使用的服务器,有人可以提出建议

.htaccess is actually read by your webserver, in this case apache. You should be looking at what your web server supports. Perhaps, you can post what server you are using and someone can make a suggestion

更多推荐

本文发布于:2023-08-03 18:07:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1396180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:是有   htaccess   Java   supports   alternatives

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!