# ERROR
ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener
解决方法:
建立一个Application类
package com.dachan.junitdemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* auther:kenychen
* date:2020.11.19
*/
@SpringBootApplication
//@MapperScan(value={"com.dachan.junitdemo"})
public class MainApplication {
public static void main(String[] args) {
SpringApplication.run(MainApplication.class, args);
}
}
# ERROR2
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/dev/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-simple/1.7.30/e606eac955f55ecf1d8edcccba04eb8ac98088dd/slf4j-simple-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/dev/.gradle/cach