我遵循javamelody的官方教程:https://github.com/javamelody/javamelody/wiki/SpringBootStarter来为我的VPS应用安装监视器。在开发人员计算机上,我收到以下日志:
[main] [INFO ] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'monitoringSpringControllerAdvisor' of type [net.bull.javamelody.MonitoringSpringAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
但是,我仍然可以访问监视页面。部署后,监视根本不会运行。
该服务器是具有TomCat 8.5的Linux VPS
这是我的gradle依赖项:
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: '2.1.2.RELEASE'
compile group: 'net.bull.javamelody', name: 'javamelody-spring-boot-starter', version: '1.76.0'
compile group: 'net.bull.javamelody', name: 'javamelody-core', version: '1.76.0'
还有我的application.properties
javamelody.enabled=true
javamelody.excluded-datasources=secretSource,topSecretSource
javamelody.spring-monitoring-enabled=true
javamelody.init-parameters.log=true