Mybatis run the project, run the test class, click on the test, appears Can not start compilation: the output path is not specified for module "before ......

Cannot start compilation: the output path is not specified for module "前

Right-click in pom.xml later found, there is a + sign, put the maven to join the project, click on the next problem will be solved. java.com.crosudd.t

The second error:

Then after the run, the console appears Can not instantiate test (s): java.lang.SecurityException: Prohibited package name:

No output content, Internet search a bit, is the package name wrong test class, pay more of java

specific:

Exception Error: Can not instantiate test (s) : java.lang.SecurityException: Prohibited package name: java.com.crosudd.test
in the test package: Package name appears at the beginning java.com.crosudd.test java, should be replaced com .crosudd.test the Java can be removed to write a class test. Individual solutions, please be patient if different own search on the Internet

Guess you like

Origin www.cnblogs.com/hyjh/p/11843092.html