类 CustomSQLExceptionTranslatorRegistrar

    • 方法详细资料

      • setTranslators

        public void setTranslators​(Map<String,​SQLExceptionTranslator> translators)
        Setter for a Map of SQLExceptionTranslator references where the key must be the database name as defined in the sql-error-codes.xml file.

        Note that any existing translators will remain unless there is a match in the database name, at which point the new translator will replace the existing one.

      • afterPropertiesSet

        public void afterPropertiesSet()
        从接口复制的说明: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        指定者:
        afterPropertiesSet 在接口中 InitializingBean