类的使用
org.springframework.beans.BeansException
使用BeansException的程序包 程序包 说明 org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.adapter SPI package allowing Spring AOP framework to handle arbitrary advice types.org.springframework.aop.framework.autoproxy Bean post-processors for use in ApplicationContexts to simplify AOP usage by automatically creating AOP proxies without the need to use a ProxyFactoryBean.org.springframework.aop.target org.springframework.beans This package contains interfaces and classes for manipulating Java beans.org.springframework.beans.factory The core package implementing Spring's lightweight Inversion of Control (IoC) container.org.springframework.beans.factory.annotation Support package for annotation-driven bean configuration.org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.parsing Support infrastructure for bean definition parsing.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factorypackage.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactoryimplementation, including a standard "spring-beans" XSD.org.springframework.beans.support Classes supporting the org.springframework.beans package, such as utility classes for sorting and holding lists of beans.org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.expression Expression parsing support within a Spring application context.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.context.weaving Load-time weaving support for a Spring application context, building on Spring'sLoadTimeWeaverabstraction.org.springframework.dao.support Support classes for DAO implementations, providing miscellaneous utility methods.org.springframework.jca.context Integration package that allows for deploying a Spring application context as a JCA 1.7 compliant RAR file.org.springframework.jms.annotation Annotations and support classes for declarative JMS listener endpoints.org.springframework.jndi.support Support classes for JNDI usage, including a JNDI-based BeanFactory implementation.org.springframework.messaging.core Defines interfaces and implementation classes for messaging templates.org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.web.filter Provides generic filter base classes allowing for bean-style configuration.org.springframework.web.method.annotation Support classes for annotation-based handler method processing.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.reactive.result.view.freemarker Support classes for the integration of FreeMarker as Spring web view technology.org.springframework.web.reactive.result.view.script Support classes for views based on the JSR-223 script engine abstraction (as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.view Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.view.freemarker Support classes for the integration of FreeMarker as Spring web view technology.org.springframework.web.servlet.view.groovy Support classes for the integration of Groovy Templates as Spring web view technology.org.springframework.web.servlet.view.script Support classes for views based on the JSR-223 script engine abstraction (as included in Java 6+), e.g. using JavaScript via Nashorn on JDK 8.org.springframework.web.servlet.view.xslt Support classes for XSLT, providing a View implementation for XSLT stylesheets.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.aop.framework中BeansException的使用
抛出BeansException的org.springframework.aop.framework中的方法 修饰符和类型 方法 说明 ObjectProxyFactoryBean. getObject()Return a proxy.org.springframework.aop.framework.adapter中BeansException的使用
抛出BeansException的org.springframework.aop.framework.adapter中的方法 修饰符和类型 方法 说明 ObjectAdvisorAdapterRegistrationManager. postProcessAfterInitialization(Object bean, String beanName)ObjectAdvisorAdapterRegistrationManager. postProcessBeforeInitialization(Object bean, String beanName)org.springframework.aop.framework.autoproxy中BeansException的使用
抛出BeansException的org.springframework.aop.framework.autoproxy中的方法 修饰符和类型 方法 说明 protected abstract Object[]AbstractAutoProxyCreator. getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource customTargetSource)Return whether the given bean is to be proxied, what additional advices (e.g.org.springframework.aop.target中BeansException的使用
抛出BeansException的org.springframework.aop.target中的方法 修饰符和类型 方法 说明 ObjectLazyInitTargetSource. getTarget()ObjectPrototypeTargetSource. getTarget()Obtain a new prototype instance for every call.ObjectThreadLocalTargetSource. getTarget()Implementation of abstract getTarget() method.protected ObjectAbstractPrototypeBasedTargetSource. newPrototypeInstance()Subclasses should call this method to create a new prototype instance.voidAbstractPoolingTargetSource. setBeanFactory(BeanFactory beanFactory)voidAbstractPrototypeBasedTargetSource. setBeanFactory(BeanFactory beanFactory)org.springframework.beans中BeansException的使用
org.springframework.beans中BeansException的子类 修饰符和类型 类 说明 classBeanInstantiationExceptionException thrown when instantiation of a bean failed.classConversionNotSupportedExceptionException thrown when no suitable editor or converter can be found for a bean property.classFatalBeanExceptionThrown on an unrecoverable problem encountered in the beans packages or sub-packages, e.g. bad class or field.classInvalidPropertyExceptionException thrown when referring to an invalid bean property.classMethodInvocationExceptionThrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.classNotReadablePropertyExceptionException thrown on an attempt to get the value of a property that isn't readable, because there's no getter method.classNotWritablePropertyExceptionException thrown on an attempt to set the value of a property that is not writable (typically because there is no setter method).classNullValueInNestedPathExceptionException thrown when navigation of a valid nested property path encounters a NullPointerException.classPropertyAccessExceptionSuperclass for exceptions related to a property access, such as type mismatch or invocation target exception.classPropertyBatchUpdateExceptionCombined exception, composed of individual PropertyAccessException instances.classTypeMismatchExceptionException thrown on a type mismatch when trying to set a bean property.抛出BeansException的org.springframework.beans中的方法 修饰符和类型 方法 说明 static voidBeanUtils. copyProperties(Object source, Object target)Copy the property values of the given source bean into the target bean.static voidBeanUtils. copyProperties(Object source, Object target, Class<?> editable)Copy the property values of the given source bean into the given target bean, only setting properties defined in the given "editable" class (or interface).static voidBeanUtils. copyProperties(Object source, Object target, String... ignoreProperties)Copy the property values of the given source bean into the given target bean, ignoring the given "ignoreProperties".static PropertyDescriptorBeanUtils. findPropertyForMethod(Method method)Find a JavaBeansPropertyDescriptorfor the given method, with the method either being the read method or the write method for that bean property.static PropertyDescriptorBeanUtils. findPropertyForMethod(Method method, Class<?> clazz)Find a JavaBeansPropertyDescriptorfor the given method, with the method either being the read method or the write method for that bean property.static PropertyDescriptorBeanUtils. getPropertyDescriptor(Class<?> clazz, String propertyName)Retrieve the JavaBeansPropertyDescriptorsfor the given property.static PropertyDescriptor[]BeanUtils. getPropertyDescriptors(Class<?> clazz)Retrieve the JavaBeansPropertyDescriptors of a given class.protected AbstractNestablePropertyAccessor.PropertyHandlerAbstractNestablePropertyAccessor. getPropertyHandler(String propertyName)Return theAbstractNestablePropertyAccessor.PropertyHandlerfor the specifiedpropertyName, navigating if necessary.Class<?>AbstractNestablePropertyAccessor. getPropertyType(String propertyName)Class<?>PropertyAccessor. getPropertyType(String propertyName)Determine the property type for the specified property, either checking the property descriptor or checking the value in case of an indexed or mapped element.TypeDescriptorAbstractNestablePropertyAccessor. getPropertyTypeDescriptor(String propertyName)TypeDescriptorPropertyAccessor. getPropertyTypeDescriptor(String propertyName)Return a type descriptor for the specified property: preferably from the read method, falling back to the write method.ObjectAbstractNestablePropertyAccessor. getPropertyValue(String propertyName)protected ObjectAbstractNestablePropertyAccessor. getPropertyValue(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens)abstract ObjectAbstractPropertyAccessor. getPropertyValue(String propertyName)Actually get the value of a property.ObjectPropertyAccessor. getPropertyValue(String propertyName)Get the current value of the specified property.voidAbstractNestablePropertyAccessor. setPropertyValue(String propertyName, Object value)protected voidAbstractNestablePropertyAccessor. setPropertyValue(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens, PropertyValue pv)voidAbstractNestablePropertyAccessor. setPropertyValue(PropertyValue pv)abstract voidAbstractPropertyAccessor. setPropertyValue(String propertyName, Object value)Actually set a property value.voidAbstractPropertyAccessor. setPropertyValue(PropertyValue pv)voidPropertyAccessor. setPropertyValue(String propertyName, Object value)Set the specified value as current property value.voidPropertyAccessor. setPropertyValue(PropertyValue pv)Set the specified value as current property value.voidAbstractPropertyAccessor. setPropertyValues(Map<?,?> map)voidAbstractPropertyAccessor. setPropertyValues(PropertyValues pvs)voidAbstractPropertyAccessor. setPropertyValues(PropertyValues pvs, boolean ignoreUnknown)voidAbstractPropertyAccessor. setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid)voidPropertyAccessor. setPropertyValues(Map<?,?> map)Perform a batch update from a Map.voidPropertyAccessor. setPropertyValues(PropertyValues pvs)The preferred way to perform a batch update.voidPropertyAccessor. setPropertyValues(PropertyValues pvs, boolean ignoreUnknown)Perform a batch update with more control over behavior.voidPropertyAccessor. setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid)Perform a batch update with full control over behavior.org.springframework.beans.factory中BeansException的使用
org.springframework.beans.factory中BeansException的子类 修饰符和类型 类 说明 classBeanCreationExceptionException thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition.classBeanCreationNotAllowedExceptionException thrown in case of a bean being requested despite bean creation currently not being allowed (for example, during the shutdown phase of a bean factory).classBeanCurrentlyInCreationExceptionException thrown in case of a reference to a bean that's currently in creation.classBeanDefinitionStoreExceptionException thrown when a BeanFactory encounters an invalid bean definition: e.g. in case of incomplete or contradictory bean metadata.classBeanExpressionExceptionException that indicates an expression evaluation attempt having failed.classBeanInitializationExceptionException that a bean implementation is suggested to throw if its own factory-aware initialization code fails.classBeanIsAbstractExceptionException thrown when a bean instance has been requested for a bean definition which has been marked as abstract.classBeanIsNotAFactoryExceptionException thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name.classBeanNotOfRequiredTypeExceptionThrown when a bean doesn't match the expected type.classCannotLoadBeanClassExceptionException thrown when the BeanFactory cannot load the specified class of a given bean.classFactoryBeanNotInitializedExceptionException to be thrown from a FactoryBean'sgetObject()method if the bean is not fully initialized yet, for example because it is involved in a circular reference.classNoSuchBeanDefinitionExceptionException thrown when aBeanFactoryis asked for a bean instance for which it cannot find a definition.classNoUniqueBeanDefinitionExceptionException thrown when aBeanFactoryis asked for a bean instance for which multiple matching candidates have been found when only one matching bean was expected.classUnsatisfiedDependencyExceptionException thrown when a bean depends on other beans or simple properties that were not specified in the bean factory definition, although dependency checking was enabled.抛出BeansException的org.springframework.beans.factory中的方法 修饰符和类型 方法 说明 static <T> TBeanFactoryUtils. beanOfType(ListableBeanFactory lbf, Class<T> type)Return a single bean of the given type or subtypes, not looking in ancestor factories.static <T> TBeanFactoryUtils. beanOfType(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Return a single bean of the given type or subtypes, not looking in ancestor factories.static <T> TBeanFactoryUtils. beanOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type)Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.static <T> TBeanFactoryUtils. beanOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.static <T> Map<String,T>BeanFactoryUtils. beansOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type)Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.static <T> Map<String,T>BeanFactoryUtils. beansOfTypeIncludingAncestors(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.<T> TBeanFactory. getBean(Class<T> requiredType)Return the bean instance that uniquely matches the given object type, if any.<T> TBeanFactory. getBean(Class<T> requiredType, Object... args)Return an instance, which may be shared or independent, of the specified bean.ObjectBeanFactory. getBean(String name)Return an instance, which may be shared or independent, of the specified bean.<T> TBeanFactory. getBean(String name, Class<T> requiredType)Return an instance, which may be shared or independent, of the specified bean.ObjectBeanFactory. getBean(String name, Object... args)Return an instance, which may be shared or independent, of the specified bean.<T> Map<String,T>ListableBeanFactory. getBeansOfType(Class<T> type)Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value ofgetObjectTypein the case of FactoryBeans.<T> Map<String,T>ListableBeanFactory. getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value ofgetObjectTypein the case of FactoryBeans.Map<String,Object>ListableBeanFactory. getBeansWithAnnotation(Class<? extends Annotation> annotationType)Find all beans which are annotated with the suppliedAnnotationtype, returning a Map of bean names with corresponding bean instances.TObjectProvider. getIfAvailable()Return an instance (possibly shared or independent) of the object managed by this factory.default TObjectProvider. getIfAvailable(Supplier<T> defaultSupplier)Return an instance (possibly shared or independent) of the object managed by this factory.TObjectProvider. getIfUnique()Return an instance (possibly shared or independent) of the object managed by this factory.default TObjectProvider. getIfUnique(Supplier<T> defaultSupplier)Return an instance (possibly shared or independent) of the object managed by this factory.TObjectFactory. getObject()Return an instance (possibly shared or independent) of the object managed by this factory.TObjectProvider. getObject(Object... args)Return an instance (possibly shared or independent) of the object managed by this factory.default voidObjectProvider. ifAvailable(Consumer<T> dependencyConsumer)Consume an instance (possibly shared or independent) of the object managed by this factory, if available.default voidObjectProvider. ifUnique(Consumer<T> dependencyConsumer)Consume an instance (possibly shared or independent) of the object managed by this factory, if unique.voidBeanFactoryAware. setBeanFactory(BeanFactory beanFactory)Callback that supplies the owning factory to a bean instance.参数类型为BeansException的org.springframework.beans.factory中的构造器 构造器 说明 UnsatisfiedDependencyException(String resourceDescription, String beanName, String propertyName, BeansException ex)Create a new UnsatisfiedDependencyException.UnsatisfiedDependencyException(String resourceDescription, String beanName, InjectionPoint injectionPoint, BeansException ex)Create a new UnsatisfiedDependencyException.org.springframework.beans.factory.annotation中BeansException的使用
抛出BeansException的org.springframework.beans.factory.annotation中的方法 修饰符和类型 方法 说明 protected <T> Map<String,T>AutowiredAnnotationBeanPostProcessor. findAutowireCandidates(Class<T> type)Obtain all beans of the given type as autowire candidates.ObjectInitDestroyAnnotationBeanPostProcessor. postProcessAfterInitialization(Object bean, String beanName)voidCustomAutowireConfigurer. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)voidInitDestroyAnnotationBeanPostProcessor. postProcessBeforeDestruction(Object bean, String beanName)ObjectInitDestroyAnnotationBeanPostProcessor. postProcessBeforeInitialization(Object bean, String beanName)static <T> TBeanFactoryAnnotationUtils. qualifiedBeanOfType(BeanFactory beanFactory, Class<T> beanType, String qualifier)Obtain a bean of typeTfrom the givenBeanFactorydeclaring a qualifier (e.g. via<qualifier>or@Qualifier) matching the given qualifier, or having a bean name matching the given qualifier.static <T> Map<String,T>BeanFactoryAnnotationUtils. qualifiedBeansOfType(ListableBeanFactory beanFactory, Class<T> beanType, String qualifier)Retrieve all bean of typeTfrom the givenBeanFactorydeclaring a qualifier (e.g. via<qualifier>or@Qualifier) matching the given qualifier, or having a bean name matching the given qualifier.static ObjectParameterResolutionDelegate. resolveDependency(Parameter parameter, int parameterIndex, Class<?> containingClass, AutowireCapableBeanFactory beanFactory)Resolve the dependency for the suppliedParameterfrom the suppliedAutowireCapableBeanFactory.org.springframework.beans.factory.config中BeansException的使用
参数类型为BeansException的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 protected ExceptionServiceLocatorFactoryBean. createServiceLocatorException(Constructor<Exception> exceptionConstructor, BeansException cause)Create a service locator exception for the given cause.抛出BeansException的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 ObjectAutowireCapableBeanFactory. applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName)ApplyBeanPostProcessorsto the given existing bean instance, invoking theirpostProcessAfterInitializationmethods.ObjectAutowireCapableBeanFactory. applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName)ApplyBeanPostProcessorsto the given existing bean instance, invoking theirpostProcessBeforeInitializationmethods.voidAutowireCapableBeanFactory. applyBeanPropertyValues(Object existingBean, String beanName)Apply the property values of the bean definition with the given name to the given bean instance.ObjectAutowireCapableBeanFactory. autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck)Instantiate a new bean instance of the given class with the specified autowire strategy.voidAutowireCapableBeanFactory. autowireBean(Object existingBean)Populate the given bean instance through applying after-instantiation callbacks and bean property post-processing (e.g. for annotation-driven injection).voidAutowireCapableBeanFactory. autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck)Autowire the bean properties of the given bean instance by name or type.ObjectAutowireCapableBeanFactory. configureBean(Object existingBean, String beanName)Configure the given raw bean: autowiring bean properties, applying bean property values, applying factory callbacks such assetBeanNameandsetBeanFactory, and also applying all bean post processors (including ones which might wrap the given raw bean).ObjectAutowireCapableBeanFactory. createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck)Fully create a new bean instance of the given class with the specified autowire strategy.<T> TAutowireCapableBeanFactory. createBean(Class<T> beanClass)Fully create a new bean instance of the given class.Constructor<?>[]InstantiationAwareBeanPostProcessorAdapter. determineCandidateConstructors(Class<?> beanClass, String beanName)default Constructor<?>[]SmartInstantiationAwareBeanPostProcessor. determineCandidateConstructors(Class<?> beanClass, String beanName)Determine the candidate constructors to use for the given bean.ObjectBeanExpressionResolver. evaluate(String value, BeanExpressionContext evalContext)Evaluate the given value as an expression, if applicable; return the value as-is otherwise.ObjectInstantiationAwareBeanPostProcessorAdapter. getEarlyBeanReference(Object bean, String beanName)default ObjectSmartInstantiationAwareBeanPostProcessor. getEarlyBeanReference(Object bean, String beanName)Obtain a reference for early access to the specified bean, typically for the purpose of resolving a circular reference.ObjectPropertyPathFactoryBean. getObject()ObjectAutowireCapableBeanFactory. initializeBean(Object existingBean, String beanName)Initialize the given raw bean, applying factory callbacks such assetBeanNameandsetBeanFactory, also applying all bean post processors (including ones which might wrap the given raw bean).default ObjectBeanPostProcessor. postProcessAfterInitialization(Object bean, String beanName)Apply thisBeanPostProcessorto the given new bean instance after any bean initialization callbacks (like InitializingBean'safterPropertiesSetor a custom init-method).ObjectInstantiationAwareBeanPostProcessorAdapter. postProcessAfterInitialization(Object bean, String beanName)default booleanInstantiationAwareBeanPostProcessor. postProcessAfterInstantiation(Object bean, String beanName)Perform operations after the bean has been instantiated, via a constructor or factory method, but before Spring property population (from explicit properties or autowiring) occurs.booleanInstantiationAwareBeanPostProcessorAdapter. postProcessAfterInstantiation(Object bean, String beanName)voidBeanFactoryPostProcessor. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)Modify the application context's internal bean factory after its standard initialization.voidCustomEditorConfigurer. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)voidCustomScopeConfigurer. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)voidDeprecatedBeanWarner. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)voidPropertyResourceConfigurer. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)voidDestructionAwareBeanPostProcessor. postProcessBeforeDestruction(Object bean, String beanName)Apply this BeanPostProcessor to the given bean instance before its destruction, e.g. invoking custom destruction callbacks.default ObjectBeanPostProcessor. postProcessBeforeInitialization(Object bean, String beanName)Apply thisBeanPostProcessorto the given new bean instance before any bean initialization callbacks (like InitializingBean'safterPropertiesSetor a custom init-method).ObjectInstantiationAwareBeanPostProcessorAdapter. postProcessBeforeInitialization(Object bean, String beanName)default ObjectInstantiationAwareBeanPostProcessor. postProcessBeforeInstantiation(Class<?> beanClass, String beanName)Apply this BeanPostProcessor before the target bean gets instantiated.ObjectInstantiationAwareBeanPostProcessorAdapter. postProcessBeforeInstantiation(Class<?> beanClass, String beanName)default PropertyValuesInstantiationAwareBeanPostProcessor. postProcessProperties(PropertyValues pvs, Object bean, String beanName)Post-process the given property values before the factory applies them to the given bean, without any need for property descriptors.PropertyValuesInstantiationAwareBeanPostProcessorAdapter. postProcessProperties(PropertyValues pvs, Object bean, String beanName)default PropertyValuesInstantiationAwareBeanPostProcessor. postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)已过时。as of 5.1, in favor ofInstantiationAwareBeanPostProcessor.postProcessProperties(PropertyValues, Object, String)PropertyValuesInstantiationAwareBeanPostProcessorAdapter. postProcessPropertyValues(PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)已过时。Class<?>InstantiationAwareBeanPostProcessorAdapter. predictBeanType(Class<?> beanClass, String beanName)default Class<?>SmartInstantiationAwareBeanPostProcessor. predictBeanType(Class<?> beanClass, String beanName)Predict the type of the bean to be eventually returned from this processor'sInstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation(java.lang.Class<?>, java.lang.String)callback.voidConfigurableListableBeanFactory. preInstantiateSingletons()Ensure that all non-lazy-init singletons are instantiated, also consideringFactoryBeans.protected voidPropertyOverrideConfigurer. processKey(ConfigurableListableBeanFactory factory, String key, String value)Process the given key as 'beanName.property' entry.protected voidPropertyOverrideConfigurer. processProperties(ConfigurableListableBeanFactory beanFactory, Properties props)protected voidPropertyPlaceholderConfigurer. processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)已过时。Visit each bean definition in the given bean factory and attempt to replace ${...} property placeholders with values from the given properties.protected abstract voidPropertyResourceConfigurer. processProperties(ConfigurableListableBeanFactory beanFactory, Properties props)Apply the given Properties to the given BeanFactory.ObjectAutowireCapableBeanFactory. resolveBeanByName(String name, DependencyDescriptor descriptor)Resolve a bean instance for the given bean name, providing a dependency descriptor for exposure to target factory methods.ObjectDependencyDescriptor. resolveCandidate(String beanName, Class<?> requiredType, BeanFactory beanFactory)Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory.ObjectAutowireCapableBeanFactory. resolveDependency(DependencyDescriptor descriptor, String requestingBeanName)Resolve the specified dependency against the beans defined in this factory.ObjectAutowireCapableBeanFactory. resolveDependency(DependencyDescriptor descriptor, String requestingBeanName, Set<String> autowiredBeanNames, TypeConverter typeConverter)Resolve the specified dependency against the beans defined in this factory.<T> NamedBeanHolder<T>AutowireCapableBeanFactory. resolveNamedBean(Class<T> requiredType)Resolve the bean instance that uniquely matches the given object type, if any, including its bean name.ObjectDependencyDescriptor. resolveNotUnique(Class<?> type, Map<String,Object> matchingBeans)已过时。as of 5.1, in favor ofDependencyDescriptor.resolveNotUnique(ResolvableType, Map)ObjectDependencyDescriptor. resolveNotUnique(ResolvableType type, Map<String,Object> matchingBeans)Resolve the specified not-unique scenario: by default, throwing aNoUniqueBeanDefinitionException.ObjectDependencyDescriptor. resolveShortcut(BeanFactory beanFactory)Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account.voidServiceLocatorFactoryBean. setBeanFactory(BeanFactory beanFactory)org.springframework.beans.factory.parsing中BeansException的使用
org.springframework.beans.factory.parsing中BeansException的子类 修饰符和类型 类 说明 classBeanDefinitionParsingExceptionException thrown when a bean definition reader encounters an error during the parsing process.org.springframework.beans.factory.support中BeansException的使用
org.springframework.beans.factory.support中BeansException的子类 修饰符和类型 类 说明 classBeanDefinitionOverrideExceptionSubclass ofBeanDefinitionStoreExceptionindicating an invalid override attempt: typically registering a new definition for the same bean name whileDefaultListableBeanFactory.isAllowBeanDefinitionOverriding()isfalse.classBeanDefinitionValidationExceptionException thrown when the validation of a bean definition failed.抛出BeansException的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 ObjectAbstractAutowireCapableBeanFactory. applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName)ObjectAbstractAutowireCapableBeanFactory. applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName)voidAbstractAutowireCapableBeanFactory. applyBeanPropertyValues(Object existingBean, String beanName)ObjectAbstractAutowireCapableBeanFactory. autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck)voidAbstractAutowireCapableBeanFactory. autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck)ObjectAbstractAutowireCapableBeanFactory. configureBean(Object existingBean, String beanName)ObjectAbstractAutowireCapableBeanFactory. createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck)<T> TAbstractAutowireCapableBeanFactory. createBean(Class<T> beanClass)protected Constructor<?>[]AbstractAutowireCapableBeanFactory. determineConstructorsFromBeanPostProcessors(Class<?> beanClass, String beanName)Determine candidate constructors to use for the given bean, checking all registeredSmartInstantiationAwareBeanPostProcessors.protected <T> TAbstractBeanFactory. doGetBean(String name, Class<T> requiredType, Object[] args, boolean typeCheckOnly)Return an instance, which may be shared or independent, of the specified bean.ObjectDefaultListableBeanFactory. doResolveDependency(DependencyDescriptor descriptor, String beanName, Set<String> autowiredBeanNames, TypeConverter typeConverter)ObjectAbstractBeanFactory. getBean(String name)<T> TAbstractBeanFactory. getBean(String name, Class<T> requiredType)<T> TAbstractBeanFactory. getBean(String name, Class<T> requiredType, Object... args)Return an instance, which may be shared or independent, of the specified bean.ObjectAbstractBeanFactory. getBean(String name, Object... args)<T> TDefaultListableBeanFactory. getBean(Class<T> requiredType)<T> TDefaultListableBeanFactory. getBean(Class<T> requiredType, Object... args)<T> TStaticListableBeanFactory. getBean(Class<T> requiredType)<T> TStaticListableBeanFactory. getBean(Class<T> requiredType, Object... args)ObjectStaticListableBeanFactory. getBean(String name)<T> TStaticListableBeanFactory. getBean(String name, Class<T> requiredType)ObjectStaticListableBeanFactory. getBean(String name, Object... args)protected abstract BeanDefinitionAbstractBeanFactory. getBeanDefinition(String beanName)Return the bean definition for the given bean name.<T> ObjectProvider<T>StaticListableBeanFactory. getBeanProvider(Class<T> requiredType)<T> Map<String,T>DefaultListableBeanFactory. getBeansOfType(Class<T> type)<T> Map<String,T>DefaultListableBeanFactory. getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)<T> Map<String,T>StaticListableBeanFactory. getBeansOfType(Class<T> type)<T> Map<String,T>StaticListableBeanFactory. getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Map<String,Object>StaticListableBeanFactory. getBeansWithAnnotation(Class<? extends Annotation> annotationType)protected FactoryBean<?>FactoryBeanRegistrySupport. getFactoryBean(String beanName, Object beanInstance)Get a FactoryBean for the given bean if possible.BeanDefinitionAbstractBeanFactory. getMergedBeanDefinition(String name)Return a 'merged' BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.protected RootBeanDefinitionAbstractBeanFactory. getMergedLocalBeanDefinition(String beanName)Return a merged RootBeanDefinition, traversing the parent bean definition if the specified bean corresponds to a child bean definition.ObjectInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner)Return an instance of the bean with the given name in this factory.ObjectInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args)Return an instance of the bean with the given name in this factory, creating it via the given factory method.ObjectInstantiationStrategy. instantiate(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)Return an instance of the bean with the given name in this factory, creating it via the given constructor.voidBeanDefinitionRegistryPostProcessor. postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry)Modify the application context's internal bean definition registry after its standard initialization.protected ObjectFactoryBeanRegistrySupport. postProcessObjectFromFactoryBean(Object object, String beanName)Post-process the given object that has been obtained from the FactoryBean.voidDefaultListableBeanFactory. preInstantiateSingletons()protected voidPropertiesBeanDefinitionReader. registerBeanDefinition(String beanName, Map<?,?> map, String prefix, String resourceDescription)Get all property values, given a prefix (which will be stripped) and add the bean they define to the factory with the given name.intPropertiesBeanDefinitionReader. registerBeanDefinitions(Map<?,?> map)Register bean definitions contained in a Map, using all property keys (i.e. not filtering by prefix).intPropertiesBeanDefinitionReader. registerBeanDefinitions(Map<?,?> map, String prefix)Register bean definitions contained in a Map.intPropertiesBeanDefinitionReader. registerBeanDefinitions(Map<?,?> map, String prefix, String resourceDescription)Register bean definitions contained in a Map.ObjectAbstractAutowireCapableBeanFactory. resolveDependency(DependencyDescriptor descriptor, String requestingBeanName)ObjectDefaultListableBeanFactory. resolveDependency(DependencyDescriptor descriptor, String requestingBeanName, Set<String> autowiredBeanNames, TypeConverter typeConverter)<T> NamedBeanHolder<T>DefaultListableBeanFactory. resolveNamedBean(Class<T> requiredType)org.springframework.beans.factory.xml中BeansException的使用
org.springframework.beans.factory.xml中BeansException的子类 修饰符和类型 类 说明 classXmlBeanDefinitionStoreExceptionXML-specific BeanDefinitionStoreException subclass that wraps aSAXException, typically aSAXParseExceptionwhich contains information about the error location.抛出BeansException的org.springframework.beans.factory.xml中的构造器 构造器 说明 XmlBeanFactory(Resource resource)已过时。Create a new XmlBeanFactory with the given resource, which must be parsable using DOM.XmlBeanFactory(Resource resource, BeanFactory parentBeanFactory)已过时。Create a new XmlBeanFactory with the given input stream, which must be parsable using DOM.org.springframework.beans.support中BeansException的使用
抛出BeansException的org.springframework.beans.support中的方法 修饰符和类型 方法 说明 static voidPropertyComparator. sort(Object[] source, SortDefinition sortDefinition)Sort the given source according to the given sort definition.static voidPropertyComparator. sort(List<?> source, SortDefinition sortDefinition)Sort the given List according to the given sort definition.org.springframework.context中BeansException的使用
org.springframework.context中BeansException的子类 修饰符和类型 类 说明 classApplicationContextExceptionException thrown during application context initialization.抛出BeansException的org.springframework.context中的方法 修饰符和类型 方法 说明 voidConfigurableApplicationContext. refresh()Load or refresh the persistent representation of the configuration, which might be from Java-based configuration, an XML file, a properties file, a relational database schema, or some other format.voidApplicationContextAware. setApplicationContext(ApplicationContext applicationContext)Set the ApplicationContext that this object runs in.org.springframework.context.expression中BeansException的使用
抛出BeansException的org.springframework.context.expression中的方法 修饰符和类型 方法 说明 ObjectStandardBeanExpressionResolver. evaluate(String value, BeanExpressionContext evalContext)org.springframework.context.support中BeansException的使用
参数类型为BeansException的org.springframework.context.support中的方法 修饰符和类型 方法 说明 protected voidAbstractApplicationContext. cancelRefresh(BeansException ex)Cancel this context's refresh attempt, resetting theactiveflag after an exception got thrown.protected voidAbstractRefreshableApplicationContext. cancelRefresh(BeansException ex)protected voidGenericApplicationContext. cancelRefresh(BeansException ex)抛出BeansException的org.springframework.context.support中的方法 修饰符和类型 方法 说明 <T> TAbstractApplicationContext. getBean(Class<T> requiredType)<T> TAbstractApplicationContext. getBean(Class<T> requiredType, Object... args)ObjectAbstractApplicationContext. getBean(String name)<T> TAbstractApplicationContext. getBean(String name, Class<T> requiredType)ObjectAbstractApplicationContext. getBean(String name, Object... args)<T> Map<String,T>AbstractApplicationContext. getBeansOfType(Class<T> type)<T> Map<String,T>AbstractApplicationContext. getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)Map<String,Object>AbstractApplicationContext. getBeansWithAnnotation(Class<? extends Annotation> annotationType)protected voidApplicationObjectSupport. initApplicationContext()Subclasses can override this for custom initialization behavior.protected voidApplicationObjectSupport. initApplicationContext(ApplicationContext context)Subclasses can override this for custom initialization behavior.protected abstract voidAbstractRefreshableApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)Load bean definitions into the given bean factory, typically through delegating to one or more bean definition readers.protected voidAbstractXmlApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)Loads the bean definitions via an XmlBeanDefinitionReader.protected voidAbstractXmlApplicationContext. loadBeanDefinitions(XmlBeanDefinitionReader reader)Load the bean definitions with the given XmlBeanDefinitionReader.protected voidAbstractApplicationContext. onRefresh()Template method which can be overridden to add context-specific refresh work.voidPropertySourcesPlaceholderConfigurer. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)Processing occurs by replacing ${...} placeholders in bean definitions by resolving each against this configurer's set ofPropertySources, which includes: all environment property sources, if anEnvironmentis presentmerged local properties, if anyhavebeenspecified any property sources set by callingPropertySourcesPlaceholderConfigurer.setPropertySources(org.springframework.core.env.PropertySources)protected voidPropertySourcesPlaceholderConfigurer. processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, ConfigurablePropertyResolver propertyResolver)Visit each bean definition in the given bean factory and attempt to replace ${...} property placeholders with values from the given properties.voidAbstractApplicationContext. refresh()protected abstract voidAbstractApplicationContext. refreshBeanFactory()Subclasses must implement this method to perform the actual configuration load.protected voidAbstractRefreshableApplicationContext. refreshBeanFactory()This implementation performs an actual refresh of this context's underlying bean factory, shutting down the previous bean factory (if any) and initializing a fresh bean factory for the next phase of the context's lifecycle.voidStaticApplicationContext. registerPrototype(String name, Class<?> clazz)Register a prototype bean with the underlying bean factory.voidStaticApplicationContext. registerPrototype(String name, Class<?> clazz, MutablePropertyValues pvs)Register a prototype bean with the underlying bean factory.voidStaticApplicationContext. registerSingleton(String name, Class<?> clazz)Register a singleton bean with the underlying bean factory.voidStaticApplicationContext. registerSingleton(String name, Class<?> clazz, MutablePropertyValues pvs)Register a singleton bean with the underlying bean factory.voidApplicationObjectSupport. setApplicationContext(ApplicationContext context)抛出BeansException的org.springframework.context.support中的构造器 构造器 说明 ClassPathXmlApplicationContext(String configLocation)Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.ClassPathXmlApplicationContext(String... configLocations)Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext(String[] configLocations, boolean refresh)Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files.ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent)Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files.ClassPathXmlApplicationContext(String[] paths, Class<?> clazz)Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext(String[] paths, Class<?> clazz, ApplicationContext parent)Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext(String[] configLocations, ApplicationContext parent)Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext(String path, Class<?> clazz)Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.FileSystemXmlApplicationContext(String configLocation)Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.FileSystemXmlApplicationContext(String... configLocations)Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.FileSystemXmlApplicationContext(String[] configLocations, boolean refresh)Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files.FileSystemXmlApplicationContext(String[] configLocations, boolean refresh, ApplicationContext parent)Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files.FileSystemXmlApplicationContext(String[] configLocations, ApplicationContext parent)Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.StaticApplicationContext()Create a new StaticApplicationContext.StaticApplicationContext(ApplicationContext parent)Create a new StaticApplicationContext with the given parent.org.springframework.context.weaving中BeansException的使用
抛出BeansException的org.springframework.context.weaving中的方法 修饰符和类型 方法 说明 voidAspectJWeavingEnabler. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)ObjectLoadTimeWeaverAwareProcessor. postProcessBeforeInitialization(Object bean, String beanName)org.springframework.dao.support中BeansException的使用
抛出BeansException的org.springframework.dao.support中的方法 修饰符和类型 方法 说明 voidPersistenceExceptionTranslationInterceptor. setBeanFactory(BeanFactory beanFactory)org.springframework.jca.context中BeansException的使用
抛出BeansException的org.springframework.jca.context中的方法 修饰符和类型 方法 说明 protected voidResourceAdapterApplicationContext. postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)org.springframework.jms.annotation中BeansException的使用
抛出BeansException的org.springframework.jms.annotation中的方法 修饰符和类型 方法 说明 ObjectJmsListenerAnnotationBeanPostProcessor. postProcessAfterInitialization(Object bean, String beanName)ObjectJmsListenerAnnotationBeanPostProcessor. postProcessBeforeInitialization(Object bean, String beanName)org.springframework.jndi.support中BeansException的使用
抛出BeansException的org.springframework.jndi.support中的方法 修饰符和类型 方法 说明 <T> TSimpleJndiBeanFactory. getBean(Class<T> requiredType)<T> TSimpleJndiBeanFactory. getBean(Class<T> requiredType, Object... args)ObjectSimpleJndiBeanFactory. getBean(String name)<T> TSimpleJndiBeanFactory. getBean(String name, Class<T> requiredType)ObjectSimpleJndiBeanFactory. getBean(String name, Object... args)org.springframework.messaging.core中BeansException的使用
抛出BeansException的org.springframework.messaging.core中的方法 修饰符和类型 方法 说明 voidGenericMessagingTemplate. setBeanFactory(BeanFactory beanFactory)org.springframework.orm.hibernate5中BeansException的使用
抛出BeansException的org.springframework.orm.hibernate5中的方法 修饰符和类型 方法 说明 InterceptorHibernateTransactionManager. getEntityInterceptor()Return the current Hibernate entity interceptor, ornullif none.org.springframework.orm.jpa中BeansException的使用
抛出BeansException的org.springframework.orm.jpa中的方法 修饰符和类型 方法 说明 voidEntityManagerFactoryAccessor. setBeanFactory(BeanFactory beanFactory)Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly.voidJpaTransactionManager. setBeanFactory(BeanFactory beanFactory)Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly.org.springframework.validation.beanvalidation中BeansException的使用
抛出BeansException的org.springframework.validation.beanvalidation中的方法 修饰符和类型 方法 说明 ObjectBeanValidationPostProcessor. postProcessAfterInitialization(Object bean, String beanName)ObjectBeanValidationPostProcessor. postProcessBeforeInitialization(Object bean, String beanName)org.springframework.web.context.support中BeansException的使用
抛出BeansException的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 protected voidGroovyWebApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)Loads the bean definitions via an GroovyBeanDefinitionReader.protected voidXmlWebApplicationContext. loadBeanDefinitions(DefaultListableBeanFactory beanFactory)Loads the bean definitions via an XmlBeanDefinitionReader.ObjectServletContextAwareProcessor. postProcessBeforeInitialization(Object bean, String beanName)org.springframework.web.filter中BeansException的使用
抛出BeansException的org.springframework.web.filter中的方法 修饰符和类型 方法 说明 protected voidGenericFilterBean. initBeanWrapper(BeanWrapper bw)Initialize the BeanWrapper for this GenericFilterBean, possibly with custom editors.org.springframework.web.method.annotation中BeansException的使用
org.springframework.web.method.annotation中BeansException的子类 修饰符和类型 类 说明 classMethodArgumentConversionNotSupportedExceptionA ConversionNotSupportedException raised while resolving a method argument.classMethodArgumentTypeMismatchExceptionA TypeMismatchException raised while resolving a controller method argument.org.springframework.web.reactive.handler中BeansException的使用
抛出BeansException的org.springframework.web.reactive.handler中的方法 修饰符和类型 方法 说明 voidSimpleUrlHandlerMapping. initApplicationContext()Calls theSimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>)method in addition to the superclass's initialization.protected voidAbstractUrlHandlerMapping. registerHandler(String[] urlPaths, String beanName)Register the specified handler for the given URL paths.protected voidAbstractUrlHandlerMapping. registerHandler(String urlPath, Object handler)Register the specified handler for the given URL path.protected voidSimpleUrlHandlerMapping. registerHandlers(Map<String,Object> urlMap)Register all handlers specified in the URL map for the corresponding paths.org.springframework.web.reactive.result.view.freemarker中BeansException的使用
抛出BeansException的org.springframework.web.reactive.result.view.freemarker中的方法 修饰符和类型 方法 说明 protected FreeMarkerConfigFreeMarkerView. autodetectConfiguration()Autodetect aFreeMarkerConfigobject in theApplicationContext.org.springframework.web.reactive.result.view.script中BeansException的使用
抛出BeansException的org.springframework.web.reactive.result.view.script中的方法 修饰符和类型 方法 说明 protected ScriptTemplateConfigScriptTemplateView. autodetectViewConfig()org.springframework.web.servlet中BeansException的使用
抛出BeansException的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 protected voidHttpServletBean. initBeanWrapper(BeanWrapper bw)Initialize the BeanWrapper for this HttpServletBean, possibly with custom editors.org.springframework.web.servlet.handler中BeansException的使用
抛出BeansException的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 protected voidAbstractDetectingUrlHandlerMapping. detectHandlers()Register all handlers found in the current ApplicationContext.protected voidAbstractHandlerMapping. initApplicationContext()Initializes the interceptors.voidSimpleUrlHandlerMapping. initApplicationContext()Calls theSimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>)method in addition to the superclass's initialization.ObjectSimpleServletPostProcessor. postProcessAfterInitialization(Object bean, String beanName)voidSimpleServletPostProcessor. postProcessBeforeDestruction(Object bean, String beanName)ObjectSimpleServletPostProcessor. postProcessBeforeInitialization(Object bean, String beanName)protected voidAbstractUrlHandlerMapping. registerHandler(String[] urlPaths, String beanName)Register the specified handler for the given URL paths.protected voidAbstractUrlHandlerMapping. registerHandler(String urlPath, Object handler)Register the specified handler for the given URL path.protected voidSimpleUrlHandlerMapping. registerHandlers(Map<String,Object> urlMap)Register all handlers specified in the URL map for the corresponding paths.org.springframework.web.servlet.view中BeansException的使用
抛出BeansException的org.springframework.web.servlet.view中的方法 修饰符和类型 方法 说明 voidResourceBundleViewResolver. afterPropertiesSet()Eagerly initialize Locales if necessary.voidXmlViewResolver. afterPropertiesSet()Pre-initialize the factory from the XML file.voidResourceBundleViewResolver. destroy()Close the bundle View factories on context shutdown.voidXmlViewResolver. destroy()Close the view bean factory on context shutdown.protected BeanFactoryResourceBundleViewResolver. initFactory(Locale locale)protected BeanFactoryXmlViewResolver. initFactory()Initialize the view bean factory from the XML file.protected ViewXmlViewResolver. loadView(String viewName, Locale locale)ViewBeanNameViewResolver. resolveViewName(String viewName, Locale locale)voidViewResolverComposite. setApplicationContext(ApplicationContext applicationContext)org.springframework.web.servlet.view.freemarker中BeansException的使用
抛出BeansException的org.springframework.web.servlet.view.freemarker中的方法 修饰符和类型 方法 说明 protected FreeMarkerConfigFreeMarkerView. autodetectConfiguration()Autodetect aFreeMarkerConfigobject via the ApplicationContext.protected voidFreeMarkerView. initServletContext(ServletContext servletContext)Invoked on startup.org.springframework.web.servlet.view.groovy中BeansException的使用
抛出BeansException的org.springframework.web.servlet.view.groovy中的方法 修饰符和类型 方法 说明 protected groovy.text.markup.MarkupTemplateEngineGroovyMarkupView. autodetectMarkupTemplateEngine()Autodetect a MarkupTemplateEngine via the ApplicationContext.org.springframework.web.servlet.view.script中BeansException的使用
抛出BeansException的org.springframework.web.servlet.view.script中的方法 修饰符和类型 方法 说明 protected ScriptTemplateConfigScriptTemplateView. autodetectViewConfig()org.springframework.web.servlet.view.xslt中BeansException的使用
抛出BeansException的org.springframework.web.servlet.view.xslt中的方法 修饰符和类型 方法 说明 protected voidXsltView. initApplicationContext()Initialize this XsltView's TransformerFactory.org.springframework.web.socket.client.standard中BeansException的使用
抛出BeansException的org.springframework.web.socket.client.standard中的方法 修饰符和类型 方法 说明 voidAnnotatedEndpointConnectionManager. setBeanFactory(BeanFactory beanFactory)