✔ http기준
개발이나 도메인으로 접속할때 꼭 해당 어플레케이션의 포트번호를 입력해야 접속하게 된다.
하지만 포트번호를 입력해서 접속한다는것은 사용자도 매우 불편하고 url도 보기 좋지 않다.
이를 위해 포트번호를 나타나지 않게 하는 방법이 있다.
바로 포트번호를 http 기본포트 값(80)으로 지정하는 것이다.
포트번호를 http 기본포트 값(80)으로 지정하면 url에서 포트번호를 생략할 수 있다.
이는 url에서 포트번호를 생략시 기본포트로 접속하게 설계되었기 때문이다.
server:
port: 80
application.yml에 해당 코드를 추가하면 포트번호 입력없이도 접속 할 수 있다.
+외부서버를 사용한다면 인바운드 규칙을 변경하는 것도 잊지 말것!
https는 기본 포트가 443이라고 한다.