删除tomcat 7上的设置默认链接

时间:2017-05-02 07:13:58

标签: java tomcat

我和tomcat 7有关系。 当我在悬停此链接时设置<a href="google.com">然后再设置浏览器时,它将显示为以下方式:

  

本地主机:8080 / AppName的/ google.com

请告诉我找到设置"localhost:8080/AppName"的位置。 感谢

1 个答案:

答案 0 :(得分:0)

确保设置绝对网址而不仅仅是google.com。它不是因为tomcat,而是浏览器。创建超链接时,您需要设置绝对URL或相对值(只是要附加到当前位置的路径)。在您的情况下,您希望将其设置为完整的网址https://www.google.com

当它是相对的时,它会转到http://yourserver.com/currenturl/newrelativeurl

<a href="https://www.google.com"></a> //Absolute

<a href="google.com"></a> //Relative
相关问题