【发布时间】:2018-10-24 00:41:05
【问题描述】:
该应用程序是在 Spring Boot 2.0.1 上开发的。 我包含下一个能够使用 JavaMelody 的依赖项 -
dependency("net.bull.javamelody:javamelody-spring-boot-starter:1.72.0")
JavaMelody 配置:
javamelody:
advisor-auto-proxy-creator-enabled: false
init-parameters:
url-exclude-pattern: (/webjars/.*|/css/.*|/images/.*|/fonts/.*|/js/.*)
因此,我有一个性能监控系统和完全损坏的集成测试(JUnit 版本是 5)。
异常消息是
the configured DataSource [com.sun.proxy.$Proxy128] (named '') is not the one associated with transaction manager [org.springframework.orm.jpa.JpaTransactionManager] (named '').
可以通过删除 javamelody 依赖或在应用程序的配置文件中禁用 javamelody 来修复。
有人知道问题的原因吗?它不会在测试范围之外产生一些不明显的错误吗?
【问题讨论】:
标签: java spring spring-boot junit5 java-melody