在Udacity Developing Scalable Apps with Java course中,我导入了Hello Endpoints project并尝试按照说明在Eclipse EE上运行它。但是我收到以下错误消息:
[INFO] ***********************************************************
[INFO] Could not open the requested socket: Address already in use
[INFO] Try overriding --address and/or --port.
[INFO] -----------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -----------------------------------------------------------
[INFO] Total time: 4.954 s
[INFO] Finished at: 2014-12-14T10:03:16-02:00
[INFO] Final Memory: 22M/221M
[INFO] -----------------------------------------------------------
如何更改端口号?
答案 0 :(得分:0)
在构建Maven项目时,您可以编辑pom.xml
文件并取消注释<port>8080</port>
值并将其设置为未使用的端口。