2016-12-10 1 views
0

アプリケーションローカルで正常に動作しますが、展開後のエラーを取得している:は、ローカルでの作業ではなく、生産UnsatisfiedDependencyExceptionに名前でBeanを作成する「webSecurityConfiguration

Caused by: org.springframework.context.ApplicationContextException:

Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfiguration': Unsatisfied dependency expressed through field 'userDetailsService'; nested exception

先週、私は同じアプリケーションの古いバージョンを展開アプリケーションが正常に動作していました。どうすれば修正できますか?

@Configuration 
@EnableWebSecurity 
@EnableGlobalMethodSecurity(prePostEnabled = true) 
public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { 

    @Autowired 
    private EntryPointUnauthorizedHandler unauthorizedHandler; 

    @Autowired//package org.springframework.security.core.userdetails; 
    private UserDetailsService userDetailsService; 

私は、サーバーのApache Tomcat/7.0.68およびJavaに、春ブーツとprovidedRuntime('org.springframework.boot:spring-boot-starter-tomcat'との戦争を使用します、問題がデータベースと1.8.0_11-b12の私の場合は

答えて

関連する問題