maven spring-boot run (port 옵션)

2017. 3. 30. 13:31모두모두 개발자다요/JAVA

$ mvn spring-boot:run -Dserver.port=포트번호

(... ?? 안된다;;)

 

(properties 또는 yml) 설정파일에 추가하여 실행한다. 

application.properties

server.port = 포트번호

 

application.yml

server:

    port: 포트번호