String[] totalBaseNames = baseNamesSet.toArray(new String[0]);
if (logger.isInfoEnabled()) {
logger.info("加载错误码国际化资源:{}", StringUtils.join(totalBaseNames, ","));
}
ResourceBundleMessageSource bundleMessageSource = new ResourceBundleMessageSource();
bundleMessageSource.setBasenames(totalBaseNames);
MessageSourceAccessor messageSourceAccessor = new MessageSourceAccessor(bundleMessageSource);
MainErrors.setErrorMessageSourceAccessor(messageSourceAccessor);
SubErrors.setErrorMessageSourceAccessor(messageSourceAccessor);
}