记录一下遇到的问题springboot单元测试遇见的问题

记录一下遇到的问题springboot单元测试遇见的问题,第1张

问题:
启动测试方法时报错:

org.junit.platform.commons.JUnitException: MethodSelector Caused by:
java.lang.ArrayStoreException:
sun.reflect.annotation.TypeNotPresentExceptionProxy

解决办法:
依赖错误:检查pom文件依赖

附上完整依赖:

   
        org.springframework.boot
        spring-boot-starter
    
    
        org.springframework.boot
        spring-boot-devtools
        runtime
        true
    
    
        org.projectlombok
        lombok
        true
    
    
        org.springframework.boot
        spring-boot-starter-test
        test
    

问题解决

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/924422.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-16
下一篇2022-05-16

发表评论

登录后才能评论

评论列表(0条)

    保存