private void loadActions() throws Exception {
        String actionPath = config.getActionPackage();
        if (config.getActions().size() != 0) {
            for (Map.Entry<String, Action> entry : config.getActions().entrySet()) {
                String actionKey = entry.getKey().substring(
                        actionPath.length() + 1).replaceAll("\\.", "/");
                actions.put(TStringUtils.toCamelCase(actionKey), entry.getValue());
            }
        } else {
            if (config.isSpringSupported()) {
                String[] resources = new String[config.getBeanFilePathList().size()];
                for (int i = 0; i < config.getBeanFilePathList().size(); i++) {
                    resources[i] = config.getBeanFilePathList().get(i);
                }
                this.applicationContext = new GenericXmlApplicationContext();
                ConfigurableListableBeanFactory beanFactory =
                        this.applicationContext.getBeanFactory();
                AutowiredAnnotationBeanPostProcessor autowiredProcessor =
                        new AutowiredAnnotationBeanPostProcessor();
                autowiredProcessor.setBeanFactory(beanFactory);
                beanFactory.addBeanPostProcessor(autowiredProcessor);

                CommonAnnotationBeanPostProcessor commonProcessor =
                        new CommonAnnotationBeanPostProcessor();
                commonProcessor.setBeanFactory(beanFactory);
                beanFactory.addBeanPostProcessor(commonProcessor);

                RequiredAnnotationBeanPostProcessor requiredProcessor =
                        new RequiredAnnotationBeanPostProcessor();
                requiredProcessor.setBeanFactory(beanFactory);
                beanFactory.addBeanPostProcessor(requiredProcessor);
                this.applicationContext.load(resources);
            }
            List<Class> actionClasses = getActionClasses(actionPath);
            for (Class clazz : actionClasses) {
                String actionKey = clazz.getName().substring(
                        actionPath.length() + 1).replaceAll("\\.", "/");
                Action action = null;
                if (config.isSpringSupported()) {
                    action =
                            (Action) this.applicationContext.getBeanFactory().autowire(clazz,
                                    AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, true);
                } else {
                    action = (Action) clazz.newInstance();
                }
                actions.put(TStringUtils.toCamelCase(actionKey), action);
            }
        }
    }
Get layout information
@param target  the target information
@return   the layout information
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/simplemvc/RequestDispatcher.java