首页 > 其他 > 详细

Change Dropwizard default ports

时间:2014-11-25 14:38:44      阅读:328      评论:0      收藏:0      [点我收藏+]



You can update the ports in your yaml configuration file:

http:
  port: 9000
  adminPort: 9001

See http://dropwizard.codahale.com/manual/core/#configuration-defaults for more information.

EDIT

If you‘ve migrated to Dropwizard 0.7.0 you can use the following:

server:
  applicationConnectors:
  - type: http 
    port: 9000
  adminConnectors:
  - type: http
    port: 9001

   


Change Dropwizard default ports

原文:http://my.oschina.net/dengyz/blog/348517

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!