![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
J2EE
文章平均质量分 65
恋曦Tel
成为更好的自己。
展开
-
SpringBoot启动失败报错,spring.profiles.active:@env@中环境变量@无法识别报错
今天开发中碰到的问题,报错内容如下:Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound character '@' that cannot start any token. (Do not use @ for indentation) in 'reader', line 3, column 13: active: @env@原创 2021-01-15 18:52:59 · 17775 阅读 · 0 评论 -
通俗学习Mockito结合Spring跨多层接口mock测试方法
A调B,B调C,测试A,mock掉C场景: 想要测试ServiceA下的getUserVo()方法,getUserVo()方法调用了ServiceB的服务,ServiceB里又调用了ServiceC的getUser()方法,需要mock掉ServiceC的getUser()方法。操作方法: 详细如代码,参照代码注释①把需要mock注入的服务(ServiceA,ServiceB)加上 @Inj...原创 2019-01-31 16:06:50 · 9635 阅读 · 4 评论