2016-08-22 12 views
0

Tomcat 8にSpringブートアプリケーションを配備する際に問題があります。アプリケーションの起動中に以下のエラーが表示されます。Spring Boot Tomcatの配備

java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml! 

当社webinitializer

public class SpringWebMvcInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { 

@Override 
protected Class<?>[] getRootConfigClasses() { 

    return new Class[]{SecurityConfiguration.class}; 
} 

@Override 
protected Class<?>[] getServletConfigClasses() { 

    return new Class[] {WebMvcConfiguration.class}; 
} 

@Override 
protected String[] getServletMappings() { 
    return new String[]{"/"}; 
}} 
+0

本当にできません役職。投票中にメッセージを残してください。 –

答えて

関連する問題