我尝试在其他文件中复制MetricsConfiguration,LoggingConfiguration和JhipsterProperties及其依赖项。
我完全失去了,任何想法或见解都会受到赞赏。
jhipster:
security:
rememberMe:
# security key (this key should be unique for your application, and kept secret)
key: #placeholder
mail: # specific JHipster mail property, for standard properties see MailProperties
from: jhipster@localhost
baseUrl: http://127.0.0.1:8080
metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
jmx.enabled: true
graphite:
enabled: false
host: localhost
port: 2003
prefix: jhipster
prometheus:
enabled: false
endpoint: /prometheusMetrics
logs: # Reports Dropwizard metrics in the logs
enabled: true
reportFrequency: 60 # in seconds
logging:
logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
enabled: true
host: localhost
port: 5000
queueSize: 512
答案 0 :(得分:1)
您只需要复制我在JHipster中实现的配置。
答案 1 :(得分:0)
LoggingConfiguration
使用3个应用程序属性:spring.application.name
,server.port
和eureka.instance.instanceId
。您必须确保在application-*.yml
(或bootstrap-*.yml
,如果您的应用是春云应用)中定义了它们。