简体   繁体   中英

STS - Spring Boot Application - The requested resource is not available

I have imported a project from a GIT repository and when trying to launch on Tomcat 8 I receive the following error:

The requested resource is not available.

The url launched is http://localhost:8080/[project_name]/

I have tried appending the various html files (ie home.html) to the url to no avail. Can someone please help me diagnose the issue?

Thanks!

Without any additional configuration, Spring Boot apps will launch at http://localhost:8080 .

If you want to add a context path, add the following property to your application.properties file:

server.context-path=my-project-name

Then it will launch at localhost:8080/my-project-name .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM