简体   繁体   中英

How do I choose the URL for my Spring Boot webapp without port number?

I have production tomcat server running on 8080 port with few war files. Now, I have created a vaadin/spring-boot jar, and I need to deploy it in that server. I have changed the embedded port of spring-boot application to 8082. Its working fine, but the URL is showing like - localhost:8082/statprojectdemo .

And current requirement demands that 8082 should not be seen in the URL. So, Is there anyway I can use the URL as localhost:/statprojectdemo instead of mentioning port number.

Note* - I can't use port number 8080 or 80 as my production tomcat is running on that.

The port number is hard part of the url. So there is no way to direct leave it.

Like Jens said, you need to set up a proxy server that listens on yoururl.com:80/statprojectdemo and communicates with that server on 8082.

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