简体   繁体   中英

Want to access Spring Boot Service without port in URL

For example

https://192.168.1.136:8081/ works fine

But if I try to access

https://192.168.1.136/ Error - The site can't be reached.

What are the ways to access it without a port in URL ?

Assign port 80 instead of 8081 will work.

Update application.properties in /src/main/resources/ with

server.port=80

Alternatively you may also set server.port as system property using command line option to jvm -Dserver.port=80

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