首页 > 代码库 > Change Dropwizard default ports

Change Dropwizard default ports



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