我朋友spring爆了个错,大概错误就是如此如此,这般这般。如此这般,这般如此。
一会我去问她要个错误详细信息。
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileOptionServiceCompImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public com.dhc.system.model.SystemConfig com.dhc.msb.componentImpl.FileOptionServiceCompImpl.sysConfig; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysConfig' defined in file [D:\guoshou\MSB\target\classes\applicationContext_service.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'previewurl' of bean class [com.dhc.system.model.SystemConfig]: Bean property 'previewurl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
看看ileOptionServiceCompImpl中@Service这个标记写了没有,如果写了Clean一下工程