Java应用程序在Eclipse中运行,但不作为独立jar运行

时间:2018-12-27 13:42:25

标签: java spring maven spring-mvc spring-boot

我已经使用spring-boot和maven构建了一个Java应用程序。当我从eclipse运行此应用程序时,它运行得很好,但是当我尝试通过java -jar作为独立jar运行此应用程序时,它给了我这个错误

  

错误

o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'placeRefillOrderControllerImpl': 
 Unsatisfied dependency expressed through field 'placeRefillOrderService'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException 
 Error creating bean with name 'placeRefillOrderServiceImpl': 
  Unsatisfied dependency expressed through field 'placeRefillOrderBiz'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException:
  Error creating bean with name 'placeRefillOrderBizImpl': 
     Unsatisfied dependency expressed through field 'placeRefillOrderConnector'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
  Error creating bean with name 'getConnector': Unsatisfied dependency expressed through field 'refillOrderRequestTransformer'; nested exception is
org.springframework.beans.factory.BeanCreationException: 
 Error creating bean with name 'refillOrderRequestTransformer': 
  Lookup method resolution failed; nested exception is 
java.lang.IllegalStateException: Failed to introspect Class [com.sams.pharmacy.soapconnector.helper.RefillOrderRequestTransformer] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@439f5b3d]

0 个答案:

没有答案