我想为我的春季启动应用程序添加单元测试。它不起作用,并且会抛出404错误。我正在使用1.2.1版本的spring引导并且具有用于spring-boot-starter-test的依赖关系。请让我知道如果我错过了一些东西。春季启动应用程序没有任何问题。 这里是我的代码, public class Application{
public static void main(String[]
我尝试将Spring Boot版本从1.2.2发布更改为1.3.0M5。在运行spring boot run时出现以下异常。我试图在构建和运行时更新快照,但无济于事。 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.