赞
踩
yml配置文件中增加
management.endpoint.env.enabled = false
management.server.port= -1
management: security: health: elasticsearch: enabled: false endpoints: web: exposure: include: '*' endpoint: restart: enabled: true shutdown: enabled: true env: # 禁用env接口 enabled: false health: show-details: always sensitive: false metrics: web: server: auto-time-requests: false server: # 禁用HTTP端点。如果不希望通过HTTP公开端点,则可以将管理端口设置为-1 port: -1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。