我一直在寻找如何解决这个问题。我发现了类似的问题,并尝试了所有方法,但都没有帮助。重新安装Java和gradle没有帮助。(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [<em
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:42)
at org.apache.logging.log4j.spi.AbstractLoggerAdapt
这在服务层中运行得很好,但是我在存储层方面有问题。null, testValue=null) result all:[ADBO(id=1, testValue=bar)]
这导致:
Cannot mock/spy class com.sun.proxy.调用Mockito.mockingDetails(aRepository).