728x90 스프링부트1 Spring boot port * port 번호 바꾸고 싶은 경우 > application.properties 에 추가 server.port = 포트번호 * 랜덤 포트 번호 사용하고 싶은 경우 > application.properties 에 추가 server.port = 0 /* * ${random.int} 등을 쓰면 안됨 > 이 경우 사용하지 못하는 port를 부여할 수 있음 * > 0의 경우 가용범위 내의 랜덤포트를 부여 */ * 랜덤포트 사용하는 방법 1 @Component public class RunListener implements ApplicationListener { @Override public void onApplicationEvent(ServletWebServerInitializedEvent event) { Ser.. 2022. 1. 31. 이전 1 다음 728x90