Failed to load ApplicationContext caused by ArrayIndexOutOfBoundsException in ClassReader

后端 未结 5 1267
無奈伤痛
無奈伤痛 2020-12-06 18:48

When I am running junit test class the below exception arises? How can i resolve this?

Failed to load ApplicationContext
java.lang.IllegalStateException: Fai         


        
5条回答
  •  悲&欢浪女
    2020-12-06 19:13

    Try putting the file under src folder. It will be then copied to the WEB-INF/classes folder. Then you can refer to it as classpath:dispatcher-servlet.xml. If the file is not directly under the classes directory, then you cannot use the location as classpath:dispatcher-servlet.xml in your test

提交回复
热议问题