Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署到tomcat,进入项目首页是xxx.xxx.xxx/blog。点击跳转到某一页面是(如友链)xxx.xxx.xxx/links #57

Open
ghost opened this issue Jun 15, 2018 · 5 comments
Labels
常见问题 经常被问到的一些问题

Comments

@ghost
Copy link

ghost commented Jun 15, 2018

部署到tomcat,进入项目首页是xxx.xxx.xxx/blog。点击跳转到某一页面是(如友链)xxx.xxx.xxx/links,这时候只有通过xxx.xxx.xxx/blog/links 才能正确访问到友链页面,不然tomcat会404.

@ZHENFENG13
Copy link
Owner

你这是多了一级目录啊,可以改下代码路径,或者把项目部署到webapps/ROOT下,而不是webapps/ROOT/blog下,可能是你的设置问题,自己改一下就好,不影响使用吧。

@ghost
Copy link
Author

ghost commented Jul 2, 2018

问题解决了,非常感谢。

@wulixzCN
Copy link

请问你怎么解决的

@wulixzCN
Copy link

问题解决了,非常感谢。

请问怎么解决的

@ghost
Copy link
Author

ghost commented Oct 30, 2018

我是修改web.xml文件 如下所示,

app是我这个项目的名字。

@ZHENFENG13 ZHENFENG13 transferred this issue from ZHENFENG13/spring-boot-projects May 15, 2019
@ZHENFENG13 ZHENFENG13 added the 常见问题 经常被问到的一些问题 label Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
常见问题 经常被问到的一些问题
Projects
None yet
Development

No branches or pull requests

2 participants